“FRED TV 17”, “id” => 1),
array(“name” => “FRG TV 18”, “id” => 2),
);
date_default_timezone_set(‘America/New_York’);
//End Setup
function padWithZeros($s, $n)
{
return sprintf(“%0” . $n . “d”, $s);
}
$server= $server.”/CablecastWS/CablecastWS.asmx?WSDL”;
$client = new SoapClient($server, array(‘cache_wsdl’ => 0));
if(!$_GET[‘ShowID’])
{
echo “Error! No Show ID supplied”;
}
else
{
$result = $client->GetShowInformation(array(‘ShowID’ => $_GET[‘ShowID’]));
$searchLength = strtotime(date(“Y-m-d”).”T”.date(“H:i:s”)) + (60*60*24*35);
echo “