RE: [PHP] Break out of a file

From: Date: Wed, 01 Nov 2000 05:06:35 +0000
Subject: RE: [PHP] Break out of a file
Groups: php.general 
Request: Send a blank email to php-general+get-23094@lists.php.net to get a copy of this message
or have it just like a whole statement if() {} elseif {} etc... then pass to it variables from myfile.php -----Original Message----- From: David Robley [mailto:huntsman@hermes.nisu.flinders.edu.au] Sent: Wednesday, November 01, 2000 1:06 PM To: Matt; php-general@lists.php.net Subject: Re: [PHP] Break out of a file On Wed, 01 Nov 2000, Matt wrote: > Is there a way to terminate processing of a required file, but not kill the > entire script? > > Example: > > ...code... > require("myfile.php"); > ...more code... > > is there some command that I can call within myfile.php that stops its > processing, but still allows ...more code... to execute? > > --Thanks With a little constructive imagination, perhaps you could make the entire contents of myfile.php a for, while or switch structure from which you could exit via break. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA -- 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 (#23094) next »