![]() |
Perl is to die as PHP is to ______
I'm just finishing up a script here and I realized that I have no idea how to completely halt execution of a script in php. Is there a way to do so like die() in perl?
|
As a little incentive, when I finish this script GFY gets a present :glugglug
|
exit
|
Quote:
|
|
dunno maybe you could write you own tho:
This is more or less what die does: ##Convert to php sub die ($) { print STDERR "$_\n"; exit(1); } |
die() also works in php.
|
Quote:
Die is an error should technically be exit(1), although nobody ever checks the return code anyway lol. |
Quote:
|
Quote:
he asked how to completely hault a script. You can have the present if you would like it. |
pie
|
Quote:
mmmmm piiieeee |
Where's the present?
|
I'm looking for a really top-notch PHP coder, please contact me at ICQ:157711456
thanks |
I sale short icq uin numbers?
|
cluck, I think you should read more about how PHP works before writing a script
exit; is so very basic - you might be missing other important commands / techniques. :2 cents: |
Quote:
So you dont just want to exit 0 out =) |
Programming classes & books are good things.
|
| All times are GMT -7. The time now is 07:27 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123