<?php
// get the command
$command = $_REQUEST['command'];
// determine which command will be run
if($command == "getAnimalList") {
// return a list of animals
echo "bird,dog,cat,cow,sheep";
} else if($command == "getAnimalSound") {
// get the animal parameter and send the right response
$animal = $_REQUEST['animal'];
if($animal == "bird") {
} else if($animal == "dog") {
} else if($animal == "cat") {
} else if($animal == "cow") {
} else if($animal == "sheep") {
} else {
}
} else {
}
?>