Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199908

Re: [PHP3] include files and redefining functions From: George Brown (george <email protected>)
Date: 08/25/99

include.inc
<?
if (!$included)
{
        $included='Y';
        echo "I only appear once";
}
?>

test.php3
<?
        include "include.inc";
        include "include.inc";
?>
On Wed, 25 Aug 1999, Bob C. Ruddy wrote:

> To all,
> I think I remember a long time ago someone asking this queston but I
> can't seem to find that email. But I am including a file twice there for
> redefining several functions. Php oviously complains. With out totally
> reorganizing my structure there isn't a way to not include the file twice.
> So is there an structure to not include a file if it has already been
> included? Thanks.
>
> Bob
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>