note 33915 deleted from function.main by torben

From: Date: Fri, 11 Jul 2003 00:34:04 +0000
Subject: note 33915 deleted from function.main by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-51873@lists.php.net to get a copy of this message
Note Submitter: Robert Neuschul ---- 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.

« previous php.notes (#51873) next »