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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-23-2003, 01:47 PM   #1
cluck
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?
cluck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 01:50 PM   #2
cluck
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
cluck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 01:52 PM   #3
StupidNewbie
Registered User
 
Join Date: Apr 2002
Posts: 864
exit
StupidNewbie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 01:53 PM   #4
cluck
Confirmed User
 
Join Date: Dec 2002
Location: New Jersey
Posts: 5,248
Quote:
Originally posted by StupidNewbie
exit
You rock.
cluck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 01:53 PM   #5
tp347
Registered User
 
Join Date: Nov 2002
Posts: 7
exit()

http://www.php.net/manual/en/function.exit.php
tp347 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 01:53 PM   #6
Sin_Vraal
Confirmed User
 
Sin_Vraal's Avatar
 
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
Sin_Vraal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 01:54 PM   #7
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
die() also works in php.
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 01:54 PM   #8
Sin_Vraal
Confirmed User
 
Sin_Vraal's Avatar
 
Join Date: Mar 2002
Location: Seattle
Posts: 465
Quote:
Originally posted by StupidNewbie
exit

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
Sin_Vraal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 01:55 PM   #9
cluck
Confirmed User
 
Join Date: Dec 2002
Location: New Jersey
Posts: 5,248
Quote:
Originally posted by punkworld
die() also works in php.
Man I should have tried that before sucking myself out of productivity world and into GFY world. I may never make it back
cluck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 01:57 PM   #10
StupidNewbie
Registered User
 
Join Date: Apr 2002
Posts: 864
Quote:
Originally posted by Sin_Vraal



Die is an error should technically be exit(1), although nobody ever checks the return code anyway lol.
Don't be bitter ;)

he asked how to completely hault a script. You can have the present if you would like it.
StupidNewbie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 01:57 PM   #11
TheFLY
So Fucking Banned
 
Join Date: Jan 2001
Location: http://www.thefly.net/ --- Quit your job and live off steady traffic.
Posts: 11,856
pie
TheFLY is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 01:59 PM   #12
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
Quote:
Originally posted by TheFLY
pie


mmmmm piiieeee
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 02:02 PM   #13
gornyhuy
Chafed.
 
gornyhuy's Avatar
 
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
Where's the present?
__________________

icq:159548293
gornyhuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 02:03 PM   #14
StupidNewbie
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
StupidNewbie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 03:05 PM   #15
PaulSweet
Confirmed User
 
Join Date: May 2002
Location: Vancouver, Canada
Posts: 1,094
I sale short icq uin numbers?
__________________

PG4L!
Home to the MAX HARDCORE video Plugin!
PaulSweet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 03:08 PM   #16
Zyber
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.


Zyber is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 05:02 PM   #17
Sin_Vraal
Confirmed User
 
Sin_Vraal's Avatar
 
Join Date: Mar 2002
Location: Seattle
Posts: 465
Quote:
Originally posted by Sin_Vraal



Die is an error should technically be exit(1), although nobody ever checks the return code anyway lol.
Your right, although he DID ask how halt using die in his example.

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
Sin_Vraal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2003, 05:27 PM   #18
Thorin
Registered User
 
Join Date: May 2002
Location: Porn Ghetto
Posts: 44
Programming classes & books are good things.
Thorin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.