So I'm trying to get my PHP include() statements to look for files in my webroot, and I can't seem to get it to work.
I've tried putting
php_value include_path '.:/usr/local/lib/php:/usr/local/php5/lib/pear:/home/<username>/<site folder>'
in an .htaccess file in the webroot (like I'd do on my localhost), and I've tried creating a phprc file containing
in /home//.php/5.4 (like it says on the wiki page for PHP.ini), but nothing happens. I just keep getting "Warning: include(): Failed opening for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear')".
Can anybody help me figure out the correct way to do this? Google hasn't been much help.
(And yes, I could replace "include " in all my files with
include $_SERVER['DOCUMENT_ROOT'] . "/<filename>"
but that seems like the coward's way out.)
Oh, I just got the idea that maybe it was a lack of PEAR that was causing the problem, so I went and installed it... but it doesn't appear to have helped.