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!
Sorry for nagging, but this code does neither work in IE nor in Firefox but on the server. Both browsers only react on the header generated by this script
The IE has a feature called "Show friendly HTTP error messages", predefined messages for know response codes. If the message body is shorter than a certain threshold, the friendly error message is shown - and this certainly applies to a message body of length 0.
I understand that the server processes it and sends the header
I didn't know that firefox doesn't display "Friendly Messages" though. That is a real bummer. What do you do for include files that you don't want a user to have direct access to? Just use exit() and send no content?
I want to reuse the classes in other applications and I don't want to have a ton of code at the top of every page. I just want to be able to drop in a class without having to worry about modifying paths and the like. Besides, hackers don't need pretty little error pages.