redarrow Posted August 28, 2006 Share Posted August 28, 2006 die is more powefull then exit i was told. Quote Link to comment https://forums.phpfreaks.com/topic/18835-is-this-true-about-sessions/page/2/#findComment-81405 Share on other sites More sharing options...
radar Posted August 28, 2006 Share Posted August 28, 2006 It probably is -- though I rarely use die -- except for when I am doing a necessary exit such as if i cant connect to the database then die("output an error"); in which case this could work in this statement -- just take out the echo and replace the string you are echoing in the die clause...so likedie ("a lot of html goes here"); but exit would produce the same outcome either way.. I myself have never had a problem with my exit clause working or something slipping past it... Quote Link to comment https://forums.phpfreaks.com/topic/18835-is-this-true-about-sessions/page/2/#findComment-81425 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.