|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Dec 2002
Location: New Jersey
Posts: 5,248
|
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?
|
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Dec 2002
Location: New Jersey
Posts: 5,248
|
As a little incentive, when I finish this script GFY gets a present
![]() |
|
|
|
|
|
#3 |
|
Registered User
Join Date: Apr 2002
Posts: 864
|
exit
|
|
|
|
|
|
#4 | |
|
Confirmed User
Join Date: Dec 2002
Location: New Jersey
Posts: 5,248
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Nov 2002
Posts: 7
|
|
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Mar 2002
Location: Seattle
Posts: 465
|
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); }
__________________
"Youjizz: Henry, Thanks to you 1 in 150 people online at any given time are jerking off on my websites" Swift Communications -- UU net / Sprint / level 3 / savvis / Gblx Quad Core SaS HDD 1000mbits dedicated bandwidth $2500 AmySpears! Amy getting fucked in the ass and getting choked on a chain! -- Devil Bucks! skype: henry.goss ICQ: 5.6.4.8.0.9.8.6 |
|
|
|
|
|
#7 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
die() also works in php.
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#8 | |
|
Confirmed User
Join Date: Mar 2002
Location: Seattle
Posts: 465
|
Quote:
Die is an error should technically be exit(1), although nobody ever checks the return code anyway lol.
__________________
"Youjizz: Henry, Thanks to you 1 in 150 people online at any given time are jerking off on my websites" Swift Communications -- UU net / Sprint / level 3 / savvis / Gblx Quad Core SaS HDD 1000mbits dedicated bandwidth $2500 AmySpears! Amy getting fucked in the ass and getting choked on a chain! -- Devil Bucks! skype: henry.goss ICQ: 5.6.4.8.0.9.8.6 |
|
|
|
|
|
|
#9 | |
|
Confirmed User
Join Date: Dec 2002
Location: New Jersey
Posts: 5,248
|
Quote:
![]() |
|
|
|
|
|
|
#10 | |
|
Registered User
Join Date: Apr 2002
Posts: 864
|
Quote:
he asked how to completely hault a script. You can have the present if you would like it. |
|
|
|
|
|
|
#11 |
|
So Fucking Banned
Join Date: Jan 2001
Location: http://www.thefly.net/ --- Quit your job and live off steady traffic.
Posts: 11,856
|
pie
|
|
|
|
|
|
#12 | |
|
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Quote:
mmmmm piiieeee
__________________
I like pie. |
|
|
|
|
|
|
#13 |
|
Chafed.
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
|
Where's the present?
|
|
|
|
|
|
#14 |
|
Registered User
Join Date: Apr 2002
Posts: 864
|
I'm looking for a really top-notch PHP coder, please contact me at ICQ:157711456
thanks |
|
|
|
|
|
#15 |
|
Confirmed User
Join Date: May 2002
Location: Vancouver, Canada
Posts: 1,094
|
I sale short icq uin numbers?
|
|
|
|
|
|
#16 |
|
Confirmed User
Industry Role:
Join Date: Aug 2001
Posts: 832
|
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. ![]() |
|
|
|
|
|
#17 | |
|
Confirmed User
Join Date: Mar 2002
Location: Seattle
Posts: 465
|
Quote:
So you dont just want to exit 0 out =)
__________________
"Youjizz: Henry, Thanks to you 1 in 150 people online at any given time are jerking off on my websites" Swift Communications -- UU net / Sprint / level 3 / savvis / Gblx Quad Core SaS HDD 1000mbits dedicated bandwidth $2500 AmySpears! Amy getting fucked in the ass and getting choked on a chain! -- Devil Bucks! skype: henry.goss ICQ: 5.6.4.8.0.9.8.6 |
|
|
|
|
|
|
#18 |
|
Registered User
Join Date: May 2002
Location: Porn Ghetto
Posts: 44
|
Programming classes & books are good things.
|
|
|
|