Re: Include & redeclare error
| From: | Chris Lee | Date: | Tue, 16 Oct 2001 17:32:15 +0000 |
| Subject: | Re: Include & redeclare error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71239@lists.php.net to get a copy of this message | ||
change every instance of include() to include_once() not just in that one
file. change it in every file that would be included.
--
Chris Lee
lee@mediawaveonline.com
"Todd Cary" <todd@aristesoftware.com> wrote in message
news:3BCC3DF6.8F15DD5D@aristesoftware.com...
> Out of the blue, one of my apps is giving me the following error:
>
> Fatal error: Cannot redeclare db_open() in
> C:\Webroot\Photos\php\functions.php on line 8
>
> On every page I have
> <? include "functions.php"; ?>
>
> This was working for many months and works in all of my other apps. Any
> ideas of what may have changed? I tried include_once(), but that did
> not correct the problem. If I reload the page, everything is OK.
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> todd@aristesoftware.com
>
>