Reply to Re: [PHP] Generating a 404 status message with header()

Your name:

Reply:


Posted by Richard Davey on 10/04/13 11:23

Hello Eric,

Monday, August 8, 2005, 9:37:12 PM, you wrote:

EG> I have another file (doesexist.php) with the contents:

EG> <?PHP
EG> header("HTTP/1.0 404 Not Found");
?>>

EG> If I enter into my browser:

EG> http://mydomain.com/doesexist.php

EG> I get a blank page. Apparently, this does not trigger the 404
EG> directive.

The header 404 is correct - check to see if your script contains any
extra white-space somewhere that is causing the header to fail? (i.e.
a carriage return after the closing php tag).

Best regards,

Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
Zend Certified Engineer
"I do not fear computers. I fear the lack of them." - Isaac Asimov

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация