note 36913 deleted from function.main by didou

From: Date: Mon, 27 Oct 2003 09:42:13 +0000
Subject: note 36913 deleted from function.main by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59361@lists.php.net to get a copy of this message
Note Submitter: Tricrokra ---- The referrence to function main, appears only to me when I made an error in the files php looks for in with the "require" command (include will do the same)... The function "main" appears to me that it's there as a leftover of the fact that php is a cousin to C and C++ and that php sees everything that's not in a function falls under function "main" as "main" is in C used as the function that's automaticly executed when your C application starts... But if the "require" function cannot find the file files you give up with "require" or "include", I suppose php cannot form for itself the function main and thus gives this error... I hope this technobabble is understandable... In any way, it only occurred to me when I made typos in the filename in my "require" commands, and this php cannot find the required file... Pretty logical the compiler or whatever does not function then... But the errormessage is indeed pretty confusing....

« previous php.notes (#59361) next »