Function to stop PHP script from executing?

  • iOXeR
  • Student
  • Student
  • No Avatar
  • Joined: Jun 10, 2005
  • Posts: 92
  • Status: Offline

Post June 23rd, 2006, 12:16 pm

I'm trying to find a function that will allow me to totally stop executing a PHP script when it's called, without returning a value. I know about die(), exit(), etc, but those all return values. Thanks.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 23rd, 2006, 12:16 pm

  • meman
  • Web Master
  • Web Master
  • User avatar
  • Joined: Aug 03, 2004
  • Posts: 3432
  • Loc: London Town , Apples and pears and all that crap
  • Status: Offline

Post June 23rd, 2006, 12:32 pm

I dont understand what you mean.
Why call the script if you dont want it to run?
Under what circumstances to you want it to run or not run?
GodBeGone - Atheist Blog
  • iOXeR
  • Student
  • Student
  • No Avatar
  • Joined: Jun 10, 2005
  • Posts: 92
  • Status: Offline

Post June 23rd, 2006, 12:55 pm

I don't want to send an extra packet from the server to the computer if i don't need to.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post June 23rd, 2006, 1:01 pm

Wouldn't that mess with logging ?
Strong with this one, the sudo is.
  • iOXeR
  • Student
  • Student
  • No Avatar
  • Joined: Jun 10, 2005
  • Posts: 92
  • Status: Offline

Post June 23rd, 2006, 1:25 pm

I'm combining it with AJAX. The person viewing the webpage sends data to the PHP page. Then I want the PHP to do what it needs to, then completely stop so I don't need to send back a useless packet.

Instead of:

Client |>>>>>>>>>>>>>>>>>>>>>>>>>>>>>| Server
|<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<|

It's:

Client |>>>>>>>>>>>>>>>>>>>>>>>>>>>>>| Server
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post June 23rd, 2006, 3:48 pm

How do you know the server did what it needs to do if there's no response ?
Strong with this one, the sudo is.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 179 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.