Page 1 of 1

cannot redeclare error

Posted: Tue Apr 22, 2008 8:56 pm
by michaelh613
I am getting this error message

Fatal error: Cannot redeclare function_name() (previously declared in C:\Inetpub\Sites\site_name\includes\functions.php:5) in C:\Inetpub\Sites\site_name\includes\functions.php on line 27

Whats confusing me is this occurs for every function in functions.php and I am not duplcating them. They are only in includes\functions.php

Any ideas what could cause this. I've checked if I might be including it twice but verified its only in once

Re: cannot redeclare error

Posted: Tue Apr 22, 2008 9:24 pm
by Mds
probably u use include('functions.php') more than one , in your code

Re: cannot redeclare error

Posted: Tue Apr 22, 2008 9:43 pm
by michaelh613
Mds wrote:probably u use include('functions.php') more than one , in your code
I admit I posted this out of annoyed frustration.

I found I had included functions.php in another file that was included in this section of code.

This is a definate duh!! moment.

Thanks for the help