null_radix
null_radix

Reputation: 702

PHP http handling

Is there a way to prevent a php script from sending a http response when the script is finished executing? If not in php is it possible in any-other common web scripting langues?

Upvotes: 0

Views: 110

Answers (3)

troelskn
troelskn

Reputation: 117615

No, but you can send a http 204 (No Content).

Upvotes: 0

Tim Lytle
Tim Lytle

Reputation: 17624

I believe that would be something controlled by the web server, not the scripting language.

Upvotes: 2

Zak
Zak

Reputation: 25237

assuming no headers have been sent, just die();

Upvotes: 0

Related Questions