RE: [PHP] Can't redeclare already declared function
| From: | Altunergil, Oktay | Date: | Wed, 11 Apr 2001 15:20:57 +0000 |
| Subject: | RE: [PHP] Can't redeclare already declared function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-48174@lists.php.net to get a copy of this message | ||
If you're using php4 you can say include_once("include_file_name.php");
(there's also require_once() )
oktay
-----Original Message-----
From: Johnson, Kirk [mailto:kjohnson@zootweb.com]
Sent: Wednesday, April 11, 2001 11:18 AM
To: php-general@lists.php.net
Subject: RE: [PHP] Can't redeclare already declared function
The function in question is defined in an included file, right? This
function definition file is most likely being included twice. The best bet
is that it is being included from another included file (at least, that's
how I usually manage to produce this error :) ). Check all your included
files for a line that re-includes the function definition file a second
time.
Kirk
> -----Original Message-----
> From: kenny.hibs [mailto:kenny.hibs@ntlworld.com]
> Sent: Wednesday, April 11, 2001 3:10 AM
> To: php-general@lists.php.net
> Subject: [PHP] Can't redeclare already declared function
>
>
> Anyone help with this
>
> Fatal error: Can't redeclare already declared function in
> header.php3 on
> line 233
> The troubl is that there is no line 233 so it must be looking
> at another
> page?
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net