PHP Includes
Posted by: MarkWoodward
Posted on: 2006-06-24 18:25:00
Hi all,
Is there a default folder I should be using for include files (php)?
At the moment I'm sticking them 1 level above the document root and calling them with 'require_once(../folder/file.php). This will get messy when I start doing something like ../../../folder/file.php as I drill down within the site.
Is there a way to have 'folder' in the include path?
Do we have a personal php.ini file?
How do you all handle this?
phpinfo() shows a path of .:/usr/local/php5/lib/php. Obvious not the place to put them even if I had access.
As you can tell I'm a newbie at this. Any php I've done has been done locally. First time using an actual host.
thanks,