I'd recommend that you build a set of functions (or a class) to do your bits and pieces, rather than include blocks of code. That way you can ZIP depending on the outcome of your CHECKOUT code.
function checkoutStuff() { //if checkout code executes ok return true; } if(checkoutStuff()) { zipStuff(); } By all means stick those functions in a file and include them at the beginnign of your script. Make any sense? hth, Ben ----- Original Message ----- From: "Edward Peloke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 31, 2004 5:11 PM Subject: [PHP] running php in sequence > I am using php in combination with ant to create a small automated build > process. Will php run sequentially? What I mean is I have a series of > modules or tasks: > Example: > > //check out files > include("modules/checkout.php") > > //zip up the files > include ("modules/zip.php") > > etc > > Will php wait to execute the zip.php until the checkout.php has completed > because in my priliminary tests, it doesn't appear to do this. If not, > what's the best way to execute it? > > Thanks, > Eddie > > > WARNING: The information contained in this message and any attachments is > intended only for the use of the individual or entity to which it is > addressed. This message may contain information that is privileged, > confidential and exempt from disclosure under applicable law. It may also > contain trade secrets and other proprietary information for which you and > your employer may be held liable for disclosing. You are hereby notified > that any unauthorized dissemination, distribution or copying of this > communication is strictly prohibited. If you have received this > communication in error, please notify [EMAIL PROTECTED] by E-Mail and then > destroy this communication in a manner appropriate for privileged > information. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php