Re: Break out of a file

From: Date: Wed, 01 Nov 2000 04:05:38 +0000
Subject: Re: Break out of a file
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-23080@lists.php.net to get a copy of this message
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

« previous php.general (#23080) next »