The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Using Error404 Handler to display dynamic content
Author: David van Geyn 
Date:   18-11-01 18:04

Upon reading the brief statement you made about using Error404 for running a PHP script in this article:

http://www.freebsddiary.org/oclug.php

I decided to try it out. The problem I found was with Microsoft browsers that were set to 'Use Friendly HTTP Error Messages'. I believe, because the Apache server still sends back a HTTP/1.0 404, Microsoft Internet Explorer then displays it's generic and very simple error message saying the file could not be found. If that option is disabled, it works fine. It also works fine in Netscape, and in Lynx (however, in Lynx, it still does say in the
status bar "File Not Found", then continues and proceeds to load your error page. So, I think the problem is that Microsoft decided to not even display the error message the server produces, and just made its own.

Is there a way to get Apache to send back a 201, or whatever it is, instead of a 404? Or how would one get around this problem? Or can PHP send a second header or something, or one that receeds the Apache 404 header? I'm not really sure how this works...

Thanks for any information you can provide,

David van Geyn

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Using Error404 Handler to display dynamic content   new
David van Geyn 18-11-01 18:04 
 Re: Using Error404 Handler to display dynamic content   new
David van Geyn 21-11-01 20:28 
 examples?   new
Dan Langille 21-11-01 22:36 
 Re: examples?   new
David van Geyn 22-11-01 20:02 
 Re: examples?   new
Joshua 09-12-01 23:39 
 Re: examples?   new
Dan Langille 10-12-01 01:50 
 Re: examples?   new
Joshua 11-12-01 19:12 
 Re: examples?   new
Cymen Vig 21-04-02 04:54 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org