Function to stop PHP script from executing?

  • iOXeR
  • Student
  • Student
  • iOXeR
  • Posts: 92

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • meman
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3432
  • Loc: London Town , Apples and pears and all that crap

Post 3+ Months Ago

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?
  • iOXeR
  • Student
  • Student
  • iOXeR
  • Posts: 92

Post 3+ Months Ago

I don't want to send an extra packet from the server to the computer if i don't need to.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

Wouldn't that mess with logging ?
  • iOXeR
  • Student
  • Student
  • iOXeR
  • Posts: 92

Post 3+ Months Ago

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
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

How do you know the server did what it needs to do if there's no response ?

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 157 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.