|
Posted by Max on 08/29/06 14:55
This either just started happening on PHP 5 or I never noticed the
errors in the error logs before.
In an if construct, if a certain condition is present, I want to exit
the entire script, so after printing something to the screen I issue
the exit; command. However, in the error logs, it shows that the script
continues out of the if construct and hits the next line which uses
list/explode, but this causes errors because the variables are not
available.
The bottom line is why does the script continue after exit? I've even
taken the exit command out of the if construct and put it directly
above the list/explode statement, so that regardless of any condition
the script should end...yet it still continues.
I've tried exit;, exit();, and die(); all with the same results.
Anyone have any ideas how to get around this?
Thanks,
Max
Navigation:
[Reply to this message]
|