note 55283 deleted from function.main by nlopess

From: Date: Fri, 29 Jul 2005 08:46:29 +0000
Subject: note 55283 deleted from function.main by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-92703@lists.php.net to get a copy of this message
Note Submitter: Hel Gast ---- 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

« previous php.notes (#92703) next »