You are here: Re: 404 header « PHP Programming Language « IT news, forums, messages
Re: 404 header

Posted by BKDotCom on 12/28/06 01:03

GT wrote:
> Thanks,
>
> So (if I understand correctly) the reason I don't get any output would
> be because I haven't set up the Apache ErrorDocument to tell the server
> what to serve in the case of these errors?

The reason you don't get any output is because you didn't output
anything!
You simply sent a header. At least with your example.
try

<?php
header('HTTP/1.x 404 Not Found');
echo 'Page Not Found!';
?>

 

Navigation:

[Reply to this 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

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