I have a user login/registration system that simply uses
// execute queries, set cookies, etc. here
header("Location: " . getenv("HTTP_REFERER"));
I recently read a post about exit(); and die(); and had no idea that I was supposed to be …
Possible Duplicate:
what are the differences in die() and exit() in PHP?
I am totally confused in the difference of die and exit.
Most programmers use die like this.
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); //don't see mysql_* …
I have seen some code do this:
if(something){
echo 'exit from program';
die;
}
...more code
And others that just use die:
if(something) die('exit from program');
...more code
Is there any inherent difference in when it would end …