Re: return from the middle of a include file

From: Date: Wed, 26 Jul 2000 19:45:08 +0000
Subject: Re: return from the middle of a include file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8387@lists.php.net to get a copy of this message
Check out the include_once() function. http://snaps.php.net/manual/en/html/function.include-once.html Mysql Account wrote: > Hi all, > > Have a question. How can I return from the middle of a include file ? > I have a php script calling package.inc which is 2000 lines. At the > beginning I check if package.inc has been included before. How can I > get out of the package.inc (php not pass the rest 2000 lines) ? > > Using return ? > > Thanks in advance, > > HZ > > -- > 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

« previous php.general (#8387) next »