note 33915 added to function.main

From: Date: Thu, 10 Jul 2003 23:48:25 +0000
Subject: note 33915 added to function.main
Groups: php.notes 
Request: Send a blank email to php-notes+get-51871@lists.php.net to get a copy of this message
Error reporting only; no debug info to follow. On Linux/Apache with PHP 4.3.1 the following works as expected. Using a testbed PHP 4.3.1 system on W2K/SP3 with Apache 2 the following "include" statement fails with errors include ("realpath(dirname(__FILE__) . '/scripts/common.php' "); The errors are Warning: main(realpath(dirname(__FILE__) . 'scripts/common.php') [function.main]: failed to create stream: No such file or directory in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\fun\\admin\\test.php on line 3 Warning: main() [function.main]: Failed opening 'realpath(dirname(__FILE__) . 'scripts/common.php'' for inclusion (include_path='.;c:\\php4\\pear') in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\fun\\admin\\test.php on line 3 The common file does exist in the directory specified, and Apache does have read/write permissions over the specified file and directory. Switching from 'NIX to Windows style slashes in the include statement does *not* allow the include to work correctly. ---- Manual Page -- http://www.php.net/manual/en/function.main.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33915 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33915&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33915&report=yes

« previous php.notes (#51871) next »