PHP function giving trouble.

Status
Not open for further replies.

louie

New Member
Anybody came across this problem?

I have some functions that I use on few pages. The are included into the pages using the require_once "page"; SSI.
The problem is one of the functions returns an error as being undefined.
The weird part is that if I copy the function directly on the page that I am using it and comment the original function in the include file, works perfect.
If I uncomment the function in the include file it gives a duplicate function error - already defined.

Any suggestions why this happens. Tried everything and can put my finger on it. The include file has about 15 functions and all works grand except this one.
 

Mirror

New Member
I did come across this problem before, it was exactly the same scenario! Unfortunately I never found a solution, so I just coded the function in question into the page as it was only the one instance I had to worry about. Not the best solution I suppose, sorry I couldn't be of greater assistance!
 
Status
Not open for further replies.
Top