PHP includes not working.
| From: | Dan McCullough | Date: | Tue, 20 Mar 2001 14:54:57 +0000 |
| Subject: | PHP includes not working. | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-2525@lists.php.net to get a copy of this message | ||
Example: You can create a php file a include a file as long as that file
resides in the same directory as the include file. Test it Create a /test
directory under your sitename/web dir and make a file with <? phpinfo(); ?>
in it. name it info.php and save it in the test dir. then in your web
folder create a file with <? include ("test/info.php"); ?> and name it
test.php save it in web. Now you get an error like unable to include
info.php at inclusion: './' I've look for days how to fix this.. I found it
once somewhere and cant find it again. I have tried to add the paths to the
php.ini and restarted apache no change. I found something on script alias
or include directives in an htaccess file
dan mccullough
________________________________
There is no such thing as a problem, unless the servers are on fire