Just finished up converting this site from coldfusion to php script and I get this error.. Fatal error: Cannot redeclare getmicrotime() (previously declared in /home/computer/public_html/includes/getvars.php:13) in /home/computer/public_html/includes/getvars.php on line 15 Code (markup): Could it be because I didn't set the permissions on the file correctly?
From the error it looks like you calling getmicrotime() on lines getvars.php:13 & getvars.php:15 Did you duplicate a code there ?
nope, script came like coded as is. This is the code in the file.. function getmicrotime(){ list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); } Code (markup):
Hmm strange error... anyway I'm just guessing but this looks like it just a page load time script and you'll probable find this getmicrotime() in a footer file, if I was yourself, I would just take it out (from the footer file) as it serves no real purpose.