Ask a Question related to PHP Notes, Design and Development.
-
torben@php.net #1
note 33915 deleted from function.main by torben
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.
torben@php.net Guest
-
note 33952 deleted from function.main by didou
Note Submitter: benopierce@yourmom.com ---- I can't get to the "check mail" part of yourmom.com. Haven't been able to in 2 days. It no longer... -
note 33840 rejected from function.main by torben
Note Submitter: davidlach@yahoo.com ---- hmmmm.... i got the same ono Horde webmail but the servere had crashed. Warning:... -
note 33835 deleted from function.main by torben
Note Submitter: ---- I pushed megaman x and it went to function -
note 33658 deleted from function.setlocale by torben
Note Submitter: ---- hiii my frinds sarowt mody i'm mohanad -
note 33649 deleted from function.main by torben
Note Submitter: moppo ---- what happened to my oekaki????????? noooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo!



Reply With Quote

