[PHP] Include: Warning: Failed opening
I am trying to use include statements, but am having no luck. I set the include path in php.ini to include directories of the files, I tried CHMOD 777 on both files, and I restarted the server. I can't get any include files working. I got this message: Warning: Failed opening '/common.php' for inclusion (include_path='.:/www/htdocs/php:/www/htdocs') in /www/htdocs/php/includetest.php on line 3 Please help! _ Broadband? Dial-up? Get reliable MSN Internet Access. http://resourcecenter.msn.com/access/plans/default.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Include: Warning: Failed opening
Warning: Failed opening '/common.php' for inclusion (include_path='.:/www/htdocs/php:/www/htdocs') in /www/htdocs/php/includetest.php on line 3 Take out the forward slash in your include. '/common.php' means to look in the root directory for the file, while if you just put 'common.php' or './common.php' it'll look in the same directory as includetest.php. Or, provide a full path to the file '/www/htdocs/php/common.php'. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php