Re: Benchmarking a script

From: Date: Wed, 23 Jun 2004 10:01:05 +0000
Subject: Re: Benchmarking a script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188859@lists.php.net to get a copy of this message
Well you could put all of your function definitions into a separate file. Then, just include the function file before you loop through the code that uses the functions. Or as an alternative you could also do: <?php if (!function_exists('name_of_function')) { function name_of_function() {
     // do something
} } ?> But this really isn't a good idea. Try to put the function definitions into a separate file if that's feasible. Jason

« previous php.general (#188859) next »