Edits to README after Karl's review
[jquery.git] / test / data / name.php
1 <?php
2 error_reporting(0);
3 $wait = $_REQUEST['wait'];
4 if($wait) {
5         sleep($wait);
6 }
7 $xml = $_REQUEST['xml'];
8 if($xml) {
9         header("Content-type: text/xml");
10         $result = ($xml == "5-2") ? "3" : "?";
11         echo "<math><calculation>$xml</calculation><result>$result</result></math>";
12         die();
13 }
14 $name = $_REQUEST['name'];
15 if($name == 'foo') {
16         echo "bar";
17         die();
18 } else if($name == 'peter') {
19         echo "pan";
20         die();
21 }
22 $request = apache_request_headers();
23 $request = $request['X-Custom-Header'];
24 if(strlen($request) > 0) {
25         echo $request;
26         die();
27 }
28 echo 'ERROR <script type="text/javascript">ok( true, "name.php executed" );</script>';
29 ?>