PHP include path

Soldato
Joined
1 Feb 2006
Posts
8,188
If I am to set an include path for PHP is it better to set the include path at the top of each php script or to use an htaccess?

The servers I am on require a php.ini to set the include path but the annoying thing is that I need a php.ini for each directory.

Just curious to know what is best practice here. I had problems suddenly with htaccess files being ignored and so a lot of my pages went down as the default include path wasn't been overridden.

Is it a much more solid solution to define this at page level?
 
Back
Top Bottom