2009-11-25 17:09:53 +00:00
|
|
|
<?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();
|
|
|
|
}
|
2011-02-04 23:20:23 +00:00
|
|
|
|
2009-11-25 17:09:53 +00:00
|
|
|
echo 'ERROR <script type="text/javascript">ok( true, "name.php executed" );</script>';
|
2006-09-30 14:34:49 +00:00
|
|
|
?>
|