Re: http response 200

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



joaquinbordado wrote:
> 'm a total newbie..i just want to know how can i display an http response 200

Don't have time to customize it for you, but that's how it can be done-

header("HTTP/1.0 404 Not Found");
/*
 *
 * I copied the DOCTYPE from what Apache 1.3.34 returns.
 *
 */
echo "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">";
echo "<html>";
echo "<head>";
echo "<title>404 Not Found</title>";
echo "</head>";
echo "<body>";
echo "<h1>Not Found</h1>";
echo "<p>The requested URL " . $_SERVER['REQUEST_URL'] . "was not found on this server.</p>";
echo "<hr>";

Note, that you must not have any output before sending header(). There is a way to check, write back, if interested how.

Iv

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux