wizardsandwars Posted December 18, 2002 Share Posted December 18, 2002 How can I stop the execution of a php script, and call another? I know how to include, and require, but the script always returns control back to the calling script. ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
Guest Posted December 18, 2002 Share Posted December 18, 2002 Require your script and use exit(); afterwards. if ($transfercontrol == true) { require ('./somescript.php'); exit(); } Link to comment Share on other sites More sharing options...
wizardsandwars Posted December 18, 2002 Author Share Posted December 18, 2002 Yup. I knew there was a simple way to do it that I was overlooking. I was thinking of a php redirect that I know exists somewhere, but this works just as well. Thanks. ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.