redarrow Posted August 28, 2006 Share Posted August 28, 2006 die is more powefull then exit i was told. 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... 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
Archived
This topic is now archived and is closed to further replies.