Re: error: cannot redeclare ()

From: Date: Thu, 07 Aug 2003 13:45:54 +0000
Subject: Re: error: cannot redeclare ()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-158649@lists.php.net to get a copy of this message
From: "Martin Towell" <martin.towell@world.net> > I'm getting the following error: > > PHP Fatal error: Cannot redeclare () (previously declared in > /path/to/file/functions.inc:19) in /path/to/file/functions.inc on line 0 > > Anyone have any ideas how a no-name function could be generated? > Line 19 contains: > function idb_exec_deadlock($sql,$count=0) Make sure you're not including/requiring functions.inc more than once. This is usually what causes these kind of errors. Also, I hope you are denying access to .inc files on your server, otherwise your PHP code will be served up as plain text. ---John Holmes...

« previous php.general (#158649) next »