diff options
author | John Resig <jeresig@gmail.com> | 2007-09-08 12:42:32 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-09-08 12:42:32 +0000 |
commit | b4e23b5af0820a66c2e275051f613f3df9a4444d (patch) | |
tree | 8045667211e4aa393ee1b6e006dd0c953e77c963 /test/data/name.php | |
parent | 13b66c8ba9618242df2c1cc352a2b1d879c36188 (diff) | |
download | jquery-b4e23b5af0820a66c2e275051f613f3df9a4444d.tar.gz jquery-b4e23b5af0820a66c2e275051f613f3df9a4444d.zip |
Reorganzing the jQuery source (first phase).
Diffstat (limited to 'test/data/name.php')
-rw-r--r-- | test/data/name.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/data/name.php b/test/data/name.php new file mode 100644 index 000000000..a4b990e3d --- /dev/null +++ b/test/data/name.php @@ -0,0 +1,29 @@ +<?php
+error_reporting(0);
+$wait = $_REQUEST['wait'];
+if($wait) {
+ sleep($wait);
+}
+$xml = $_REQUEST['xml'];
+if($xml) {
+ header("Content-type: text/xml");
+ $result = ($xml == "5-2") ? "3" : "?";
+ echo "<math><calculation>$xml</calculation><result>$result</result></math>";
+ die();
+}
+$name = $_REQUEST['name'];
+if($name == 'foo') {
+ echo "bar";
+ die();
+} else if($name == 'peter') {
+ echo "pan";
+ die();
+}
+$request = apache_request_headers();
+$request = $request['X-Custom-Header'];
+if(strlen($request) > 0) {
+ echo $request;
+ die();
+}
+echo 'ERROR <script type="text/javascript">ok( true, "name.php executed" );</script>';
+?>
\ No newline at end of file |