abid786 Posted May 21, 2008 Share Posted May 21, 2008 Is there a way to tell the server to stop executing PHP code? If I use "die" then the html following the php also drops. Quote Link to comment https://forums.phpfreaks.com/topic/106689-solved-exit-function/ Share on other sites More sharing options...
marcusfaye87 Posted May 21, 2008 Share Posted May 21, 2008 "break;" ? Quote Link to comment https://forums.phpfreaks.com/topic/106689-solved-exit-function/#findComment-546914 Share on other sites More sharing options...
abid786 Posted May 21, 2008 Author Share Posted May 21, 2008 Thanks for the quick reply! I accomplished the same thing using if (), though Thanks anyway! Quote Link to comment https://forums.phpfreaks.com/topic/106689-solved-exit-function/#findComment-546915 Share on other sites More sharing options...
marcusfaye87 Posted May 21, 2008 Share Posted May 21, 2008 Well that is the usual way to go if you want to only run code when it meets specific conditions. after all, that's what they're for Quote Link to comment https://forums.phpfreaks.com/topic/106689-solved-exit-function/#findComment-546916 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.