[thelist] [php] cannot redeclare function error

Paul Bennett paul at teltest.com
Mon Feb 10 15:34:01 CST 2003

I am getting an error with one function :
"*Fatal error*: Cannot redeclare getuser() in */<file
path>/includes/databaseFunctions.php* on line *20*"
when databaseFunctions.php is included.
There are two possible errors that cause this error (that I know of)
(1) The function is being defined twice - this is not happening with
mine, as it only occurs *once* in all 4 files that the script involves.
(2) It is a reseved built in function name for an already existing php
function - the function name i am using is "getUser()". I have scoured
the manual and have found no match.
The function does not call itself, which I thought could also cause the
error. Does anyone have any suggestions?

Paul Bennett
Internet Developer
Teltest Electronic Design
Phone : 64 4 237 0767
Web : http://www.teltest.com
Wap : http://wap.teltest.com
Email : paul at teltest.com

More information about the thelist mailing list