I have a library that I am hoping to use across several sites on my server.
phpinfo() reports:
Local Value Master Value
include_path .:/usr/share/php:/usr/share/pear .:/usr/share/php:/usr/share/pear
So to try the most basic include, I created:
test.php in /usr/share/php
Code: Select all
<?
echo "INCLUDED TEST";
?>
mytest.php
Code: Select all
<?
include ('test.php');
?>
Code: Select all
<?
Warning: include(test.php) [function.include]: failed to open stream: No such file or directory in /home/mysite/public_html/temp/mytest.php on line 2
Warning: include() [function.include]: Failed opening 'test.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/mysite/public_html/temp/mytest.php on line 2
?>
What am I doing wrong?