How to return HTTP 500 error code programmatically

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
glen09
Forum Newbie
Posts: 6
Joined: Mon Feb 02, 2009 2:37 pm

How to return HTTP 500 error code programmatically

Post by glen09 »

I'm using php to access MySQL DB. When there is an DB error, I want my php code returns a HTTP 500
Internal Error code back to the Flex client. The HTTP error codes would trigger the Flex FaultEvent. How can
I send the HTTP error code to the client?
Post Reply