Michal Čihař a écrit :
On Monday 11 July 2005 18:52, Marc Delisle wrote:
I would prefer your second solution eval() of the file contents, which returns FALSE in case of parse error.
Are you sure? AFAIK eval does not return anything unless there is return statement in evaled code.
From http://ca.php.net/manual/en/function.eval.php: "In case of a parse error in the evaluated code, eval() returns FALSE."
Marc