Im having a trouble where a function is being created twice in a script via includes being included on includes...anyways.. is there a funtion or soemthing that detects if a function is created then if it isnt, it will be created.
I'm not sure if that would work, but you could register a global variable $[function_name]_isset. Then just check if it's the value you set it at. If it is not, then the function has not been set.
Hope this helps.
www.php.net/include_once for your problem,
www.php.net/function_exists to check a functions existance