Reply to Re: Auto_prepend_file

Your name:

Reply:


Posted by -Lost on 05/12/07 15:23

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.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация