Click here to return

Dean Webb Developer
' . $error . ''; //no city or a 404 will post an error. if there is an error, a message is displayed and further action is stopped } else { $output = file_get_contents($url); //if no error, then the website is scraped preg_match_all('!3 Day Weather Forecast Summary: (.+?)!', $output, $here); //search for the specific text, and output results for ($i=0; $i '. $here[1][$i] . ''; //success output in box, whilst including name of city in upper case if not typed as such }; }; }; ?>

What's the Weather?

Enter the name of a city.