'); $pos2 = strpos($data2, '', $pos1); $howfar = $pos2 - $pos1; $data2 = substr($data2, $pos1, $howfar); $data2 = str_replace(' ','',$data2); function download_page($path){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$path); curl_setopt($ch, CURLOPT_FAILONERROR,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); $retValue = curl_exec($ch); curl_close($ch); return $retValue; } $sXML = download_page('https://lab.defimobile.com/tampa/rides'); $oXML = new SimpleXMLElement($sXML); if (empty($oXML)) { echo "
There are currently no wait times listed!
\n"; } else { echo "

Park Hours: " . $data2 . "
\n"; echo "\n"; foreach($oXML->ride as $oEntry){ $wait = $oEntry->waitTime; $ride = $oEntry->title; $time = $oEntry->lastModified; $pos = strrpos( $time, '.'); if ($pos !== false) { $time=substr($time, 0, $pos ); //Hello World } $time = strtotime($time); $fixed = date('l jS \of F Y h:i:s A', $time); if ($wait == "No Wait"){ $wait = "No Wait!"; } $wait = str_replace("min","minutes", $wait); $ride = str_replace("San Serpent","Sand Serpent",$ride); if ($oEntry->id < 300){ if ($wait != ""){ echo "\n"; }}} echo "\n"; echo "
RideWait Time
" . $ride . "" . $wait . "
Last updated on " . $fixed . "
"; } ?>

Lighting Strikes in Hillsborough County