note 33160 added to function.main

From: Date: Wed, 18 Jun 2003 00:14:06 +0000
Subject: note 33160 added to function.main
Groups: php.notes 
Request: Send a blank email to php-notes+get-50542@lists.php.net to get a copy of this message
When require_once() fails (because the required file does not exist), it gives the warning: Warning: main(include/path/file.php) [function.main]: failed to create stream: No such file or directory in /Users/path/file.php on line 3 PHP then throws a fatal error: Fatal error: main() [function.main]: Failed opening required 'include/path/file.php' (include_path='.:/usr/local/lib/php') in /Users/path/file.php on line 3 In both cases, "[function.main]" is linked to this page. ---- Manual Page -- http://www.php.net/manual/en/function.main.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33160 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33160&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33160&report=yes

« previous php.notes (#50542) next »