I am running PHP 5 and when this is the error it prints:
Fatal error: Cannot redeclare sanitizeinput() (previously declared in (dir...)\includes\functions.php:3) in (dir...)\includes\functions.php on line 77
My function, sanitizeInput($string) takes a string, and returns a string variable.
What I don't understand is that it says on line 77(which is just simply an ending bracket to close the function).
Another thing that doesn't make sense, is that it says "Cannot redeclare sanitizeinput()" with empty parameters when my function suppose to accept 1 parameter.
That is all that information that I can think of right now that is relevant, if you should know anymore, please just ask.
Appreciate any help :)
-----------------------------------------------------------------------------------
I actually found out my problem... Here is the solution if anyone else was having the same issue.
This error occured for me because I had my functions.php file being included multiple times, causing the script to run into a redeclare error.
Edited by Sakizen, 17 February 2010 - 04:00 PM.
Found the solution


Sign In
Create Account

Back to top









