[thelist] PHP "cannot redeclare" function

Barry Woolgar barry at burnthebook.co.uk
Thu Apr 9 08:54:30 CDT 2009


> *Fatal error*: Cannot redeclare httpref() (previously declared...

If you're including data.php from another file have you checked that you
haven't included it more than once? Replace the include() with
include_once() to see if it makes a difference. 

Also, do a quick search through your code base for the string "function
httpref(" just in case, although you'd expect to see a different line number
in that case I'd imagine.

Good luck


More information about the thelist mailing list