Re: [PHP] PHP File not found
The only pages that are getting this error are the ones that php is mapped to parse (i.e. .html .php .phtml) if I go to a page that doesn't exist with a .htm or .cgi extension etc it works fine and I get the standard IIS 404 error page. But when it is a page that php processes thats when the CGI error returns. What are the [PHP-Win] mavens? THanks. Dl Neil [EMAIL PROTECTED] wrote in message 048001c15dab$d5c0fcf0$a516100a@jrbrown">news:048001c15dab$d5c0fcf0$a516100a@jrbrown... I have just set up PHP on my webserver (IIS 4 on NT4). I have set up the script mapping so that I can save php files as .html and php processes them. This works fine until someone goes to a page that doesn't exist - instead of getting the customised error 404 page (i.e. the page you requested cannot be found), php prints: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: And thats all I get. Does anyone know how to customise this page or set up a new one? Chris, That's an IIS function (not PHP). It's a pane accessible from the MMC. Perhaps the [PHP-Win] mavens could help? =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Redirecting Using Header{} Function
Hi, I am writing a site which is available in different languages. The idea is that when the visitor selects a language on the first visit it is then set in a cookie and remembered so they aren't asked again, I also set the Language ID in a session to be used through that visit. The page that sets the cookie and session then moves on to the selected language using header(Refresh: 0;url=english.php) At first I used the Header(Location) rather than Header(Refresh) but I found that although the cookie and session were set the browser could not access them. A quick look on the php.net site gave me the Refresh bit which seemed to sort the problem. However with Netscape 4.75 when I call any page that has the Header(Refresh) function I get a nasty pop up box which says The document contains no data. I then click ok and the page loads exactly as it should but no matter what I do I can't stop this pop up box from appearing, IE, Netscape 6 and Opera all work fine. Does any have any ideas??? Cheers, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Header Refresh Function
Hi, I am writing a site which is available in different languages. The idea is that when the visitor selects a language on the first visit it is then set in a cookie and remembered so they aren't asked again, I also set the Language ID in a session to be used through that visit. The page that sets the cookie and session then moves on to the selected language using header(Refresh: 0;url=english.php) At first I used the Header(Location) rather than Header(Refresh) but I found that although the cookie and session were set the browser could not access them. A quick look on the php.net site gave me the Refresh bit which seemed to sort the problem. However with Netscape 4.75 when I call any page that has the Header(Refresh) function I get a nasty pop up box which says The document contains no data. I then click ok and the page loads exactly as it should but no matter what I do I can't stop this pop up box from appearing, IE, Netscape 6 and Opera all work fine. Does any have any ideas??? Cheers, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP File not found
Hi, I have just set up PHP on my webserver (IIS 4 on NT4). I have set up the script mapping so that I can save php files as .html and php processes them. This works fine until someone goes to a page that doesn't exist - instead of getting the customised error 404 page (i.e. the page you requested cannot be found), php prints: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: And thats all I get. Does anyone know how to customise this page or set up a new one? Thankss.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]