summaryrefslogtreecommitdiffstats
path: root/headers.php
blob: edf0df57f19c18d4488223aae2548b02a2d32df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
    header("Location: hello.php"); /* 302 redirect */
    //header("HTTP/1.0 404 Not Found"); /* still not sure how useful this is */
    /* ah, could redirect, or when using readfile(), poke the browser to pop-up save dialog */

    exit(0); /* you want this */
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hacker's Corner</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<h2>Hello, world!</h2>
<p>
<?php
?>
</p>
</body>
</html>