Re: Help with redeclare error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 27, 2011 at 20:06, Jason Pruim <lists@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> Most likely you have in included in 2 files... Look into it from that angle... It only needs to be included in 1 file to work throughout all the files.

    Prune is spot-on.  That error generally happens when you include a
file that has already been included, which contains function
definitions.  Look at the code in the files the error mentions, on the
lines it specifies, and - most likely - you'll see an include.
Changing them to include_once instead will resolve the issue, as PHP
will just skip the order if it's already been done within the
execution of the code.

-- 
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux