(file) Return to ping.php CVS log (file) (dir) Up to [Development] / ajaxlib / test

File: [Development] / ajaxlib / test / ping.php (download) / (as text)
Revision: 1.1, Sun Apr 3 15:49:49 2005 UTC (5 years, 5 months ago) by ignatzmo
Branch: MAIN
CVS Tags: HEAD
ping test script

<?php

header('Content-Type: text/plain; charset=ISO-8859-1');


$word = $_GET['word'];

if ($word == "ping")
{
	echo "pang";
}
else
{
	if ($_POST['word'])
	{
		$word = $_POST['word'];
	}
	if ($word == "ping") 
	{
		echo "pong";
	}
	else
	{
		if ($word) 
		{
			echo $word;
		}
		else
		{
			echo "ping";
		}
	}
}

?>

root@ad1455.com
Powered by
ViewCVS 0.9.2