[thelist] PHP "cannot redeclare" function
Jack Timmons
jorachim at gmail.com
Thu Apr 9 08:29:46 CDT 2009
On Thu, Apr 9, 2009 at 8:20 AM, Barney Carroll <barney at clickwork.net> 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?
>
You'll need to supply the rest of the code, because that itself looks just
fine.
Try putting it up in pastebin and sending a link so I can take a look?
--
-Jack Timmons
http://www.trotlc.com
Twitter: @codeacula
More information about the thelist
mailing list