[thelist] PHP "cannot redeclare" function

Barney Carroll barney.carroll at gmail.com
Thu Apr 9 10:35:53 CDT 2009


Thanks a lot guys. It was all about the data.php getting called twice.

Regards,
Barney Carroll
Web designer & front-end developer

web: www.clickwork.net

mobile: +44 (0) 7594 506 381
home: +44 (0) 118 975 0020

twitter: @barneycarroll


2009/4/9 Mattias Thorslund <mattias at thorslund.us>

> Barney Carroll wrote:
> > *Fatal error*: Cannot redeclare httpref() (previously declared in
> > E:\domains\a\antonio\user\htdocs\data.php:11) in *
> > E:\domains\a\antonio\user\htdocs\data.php* on line *13*
> >
> > Lines 11 to 13 of data.php are as follows:
> >
> >   function httpref($url){
> >     return stristr($url, "\htdocs");
> >   }
> >
> > There is nothing else anywhere by the name of httpref. I can't see how
> this
> > ultrabasic function can conflict with itself. Is this the server's
> > roundabout way of telling me I can't write functions?
> >
>
> Maybe you forgot to use include_once or require_once instead of include
> or require when including the file in your page?
>
> Cheers,
>
> Mattias
> --
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>



More information about the thelist mailing list