summaryrefslogtreecommitdiffstats
path: root/headers.php
diff options
context:
space:
mode:
authorKyle Kaminski <kyle@kkaminsk.com>2013-06-16 03:25:26 -0500
committerKyle Kaminski <kyle@kkaminsk.com>2013-06-16 03:25:26 -0500
commit1bad4fc00814e2c03ecadaa7faf93c6372f5bd30 (patch)
tree88104590feefcb804f5fa0ca57ee1a6c76cbf0a7 /headers.php
downloadphpsandbox-1bad4fc00814e2c03ecadaa7faf93c6372f5bd30.tar.gz
phpsandbox-1bad4fc00814e2c03ecadaa7faf93c6372f5bd30.tar.bz2
phpsandbox-1bad4fc00814e2c03ecadaa7faf93c6372f5bd30.zip
initial commit
Diffstat (limited to 'headers.php')
-rw-r--r--headers.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/headers.php b/headers.php
new file mode 100644
index 0000000..edf0df5
--- /dev/null
+++ b/headers.php
@@ -0,0 +1,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>
+