This sounds like a job for include_once
www.php.net/include_once
regards,
Philip Olson
On Wed, 30 Jan 2002, Bas Jobsen wrote:
> Hello,
>
> I have this:
> <?
> include("file1");
> function_somename();
> include("file2");
> function_somename();
> ?>
>
> file1 and contain a function definition, but the function in both files had
> the same name. This will give "Cannot redeclare ....". So can i unset the
> function before the second include?
>
> Tnx,
>
> Bas
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]