Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Have errors in your coding or want something specific added to your game? Check out our paid support here.


This forum is now closed and has moved to a new location! Click here to find out why.

AuthorTopic: Just a thought...  (Read 231 times)

Cyanide

  • Global Moderator
  • Basic Member
  • *****
  • Reputation Power: 38
  • Cyanide has no influence.
  • Offline Offline
  • Posts: 55
    • MSN Messenger - xcyanide187x@live.com
    • View Profile
Just a thought...
« on: August 24, 2011, 09:54:31 AM »
People who use die(""); should die("");  ???
Logged

mystical

  • Basic Member
  • *
  • Reputation Power: 66
  • mystical has no influence.
  • Offline Offline
  • Posts: 15
    • View Profile
Re: Just a thought...
« Reply #1 on: September 12, 2011, 07:36:48 PM »
I second that. Especially when you have a custom template. Stupid footer...
Logged

Arson

  • Global Moderator
  • Basic Member
  • *****
  • Reputation Power: 98
  • Arson barely matters.Arson barely matters.
  • Offline Offline
  • Posts: 74
    • View Profile
Re: Just a thought...
« Reply #2 on: September 14, 2011, 03:40:58 AM »
I use exit();

Which is about the same..
If I want to kill a page for some reason I use it like this:
Code: [Select]
if($check_something!=1)
{
print"error message";
include"footer.php";
exit();
}

I suppose I could just put exit() in my footer though, and use this:
Code: [Select]
if($check_something!=1)
{
print"error message";
include"footer.php";
}

So die() and exit() and the likes are useful..as long as you make sure they don't appear til after your footer is included...however you go about doing that.
Logged
List of the Best Text Games on the Interwebs!
If you own a game, you need to list it on BestTextGames.com
 


This forum is now closed and has moved to a new location! Click here to find out why.