RE: [PHP] Local version works - production breaks

From: Date: Mon, 09 Aug 2004 09:39:27 +0000
Subject: RE: [PHP] Local version works - production breaks
Groups: php.general 
Request: Send a blank email to php-general+get-193182@lists.php.net to get a copy of this message
On 08 August 2004 14:20, Josh Acecool M wrote: > Try adding > if (!function_exists("function_name")) { > function function_name ($blah) { > // Function Code > } > } > for each function. As I understand it, that will *not* work in PHP 5 as it still parses the entire file, barfing on the duplicate function definition, before even attempting to evaluate the if() at the top of the file. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#193182) next »