Re: http response 200
| From: | Iv Ray | Date: | Fri, 20 Jun 2008 09:53:57 +0000 |
| Subject: | Re: http response 200 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275677@lists.php.net to get a copy of this message | ||
joaquinbordado wrote:
'm a total newbie..i just want to know how can i display an http response 200Don'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