rofl90 Posted March 30, 2007 Share Posted March 30, 2007 i know die() but i dont know how to code it ;/ Quote Link to comment https://forums.phpfreaks.com/topic/44987-killing-the-page-with-echoing-a-message/ Share on other sites More sharing options...
DeathStar Posted March 30, 2007 Share Posted March 30, 2007 its the same as exit(); It quits the script! ex: if ($id !== "1"){ exit ("this will quit if the members id is 1"); die is exactly the same! Quote Link to comment https://forums.phpfreaks.com/topic/44987-killing-the-page-with-echoing-a-message/#findComment-218387 Share on other sites More sharing options...
Caesar Posted March 30, 2007 Share Posted March 30, 2007 Was there a coherent question somewhere in there that I missed? :-P Heh...sorry, but any chance you can elaborate on what you're trying to do? Thanks buddy. Quote Link to comment https://forums.phpfreaks.com/topic/44987-killing-the-page-with-echoing-a-message/#findComment-218388 Share on other sites More sharing options...
DeathStar Posted March 30, 2007 Share Posted March 30, 2007 read up on it on php.net(not .com) Caesar, I think he's just wanting for knowledge Quote Link to comment https://forums.phpfreaks.com/topic/44987-killing-the-page-with-echoing-a-message/#findComment-218390 Share on other sites More sharing options...
rofl90 Posted March 30, 2007 Author Share Posted March 30, 2007 o butif i dont know ext() id assume it wa die()? Quote Link to comment https://forums.phpfreaks.com/topic/44987-killing-the-page-with-echoing-a-message/#findComment-218391 Share on other sites More sharing options...
DeathStar Posted March 30, 2007 Share Posted March 30, 2007 what? If you know die() you will know exit() Quote Link to comment https://forums.phpfreaks.com/topic/44987-killing-the-page-with-echoing-a-message/#findComment-218394 Share on other sites More sharing options...
rofl90 Posted March 30, 2007 Author Share Posted March 30, 2007 Na it's a maintenance page. would this be ok? if $offlinevariable == 1 { die("http://www.mydomain.co.uk/offline.php") } Quote Link to comment https://forums.phpfreaks.com/topic/44987-killing-the-page-with-echoing-a-message/#findComment-218397 Share on other sites More sharing options...
rofl90 Posted March 30, 2007 Author Share Posted March 30, 2007 Im new to php in the alphabet die comes before ext. i look all thingsup in php refer. first.. so i came across die whcih seemd to fulfill my wishes ;P Quote Link to comment https://forums.phpfreaks.com/topic/44987-killing-the-page-with-echoing-a-message/#findComment-218398 Share on other sites More sharing options...
DeathStar Posted March 30, 2007 Share Posted March 30, 2007 Quote Link to comment https://forums.phpfreaks.com/topic/44987-killing-the-page-with-echoing-a-message/#findComment-218401 Share on other sites More sharing options...
Barand Posted March 30, 2007 Share Posted March 30, 2007 would this be ok? if $offlinevariable == 1 { die("http://www.mydomain.co.uk/offline.php") } Depends on exactly what you want that code to do. I suggest you try it and see if does what you want it to do. If it doesn't, come back, tell us what it should do, and then maybe we can help. Quote Link to comment https://forums.phpfreaks.com/topic/44987-killing-the-page-with-echoing-a-message/#findComment-218405 Share on other sites More sharing options...
Trium918 Posted March 30, 2007 Share Posted March 30, 2007 Its a lot of tricks to PHP. Quote Link to comment https://forums.phpfreaks.com/topic/44987-killing-the-page-with-echoing-a-message/#findComment-218408 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.