|
Posted by -Lost on 05/12/07 15:26
-Lost wrote:
> Schraalhans Keukenmeester wrote:
>> I am considering using the php 'auto_prepend_file' directive to have a
>> few default things loaded and some superglobals unset for all customers
>> using my server. The intended file does not produce any output to the
>> browser, just sets a few variables, modifies/unsets a few server &
>> environment variables, defines a few constants and loads a custom ftp
>> class definition.
>>
>> It seems temptingly easy to do so, but I would like to have some insight
>> in what can of worms I may be opening going this route. Are there strong
>> arguments pro/against using this feature? Some great examples perhaps?
>
> Remember that it mimics include(), so include_path is what is used.
>
> Other than that, I see nothing wrong with it. Assuming your code does
> not expose any information, and your server is setup to properly deliver
> the content. As in, PHP is delivered as PHP.
Oh, and don't use exit().
--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Navigation:
[Reply to this message]
|