note 55283 added to function.main
| From: | HelGast at osu1 dot php dot net | Date: | Fri, 29 Jul 2005 08:36:10 +0000 |
| Subject: | note 55283 added to function.main | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92701@lists.php.net to get a copy of this message | ||
Indeed, PHP Version 5.0.4 gives following output:
Warning: main(config.php) [function.main]: failed to open stream: No such file or directory in
<path>\frameworks.php on line 6
Warning: main(functions.php) [function.main]: failed to open stream: No such file or directory in
<path>\frameworks.php on line 7
Warning: main(Database.php) [function.main]: failed to open stream: No such file or directory in
<path>\frameworks.php on line 8
For the rest: These files do exist in the directory <path> and the files are parsed by PHP, I
can use the functions/classes after it. So don't know where this one comes frome.
Code that triggors this error:
<?php
require('config.php');
require('functions.php');
require('Database.php');
?>
When I replace everything with includes I get the same error. When I replace everything with
require_once or include_once, then all the problems are gone.
Future information:
PHP Version 5.0.4
System Windows 9x FAMILIE 4.10
Build Date Mar 31 2005 02:44:34
Configure Command cscript /nologo configure.js "--enable-snapshot-build"
"--with-gd=shared"
Server API Apache
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS\php.ini
PHP API 20031224
PHP Extension 20041030
Zend Extension 220040412
Debug Build no
Thread Safety enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib, compress.bzip2
Registered Stream Socket Transports tcp, udp
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
----
Submitter IP: 194.109.193.74
----
Manual Page -- http://www.php.net/manual/en/function.main.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55283
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55283&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55283&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55283&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55283&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55283&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55283&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55283&report=yes
Search -- http://master.php.net/manage/user-notes.php