Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
However, I ran into a snag. I cannot get "wordedForecast" using REST from what I can see. I can get it if I go here:
#!/usr/local/bin/php <?php // demo/temp_it_architect.php /** * https://www.experts-exchange.com/questions/28982054/PHP-code-to-retrieve-NDFD-weather-forecasts.html * * https://www.experts-exchange.com/articles/12239/Introduction-to-Application-Programming-Interfaces.html */ error_reporting(E_ALL); $url = <<<EOD http://graphical.weather.gov/xml/sample_products/browser_interface/ndfdBrowserClientByDay.php?whichClient=NDFDgenByDay&lat=42.8808333&lon=-85.5228056&listLatLon=&lat1=&lon1=&lat2=&lon2=&resolutionSub=&endPoint1Lat=&endPoint1Lon=&endPoint2Lat=&endPoint2Lon=¢erPointLat=¢erPointLon=&distanceLat=&distanceLon=&resolutionSquare=&zipCodeList=&citiesLevel=&format=24+hourly&startDate=&numDays=7&Unit=e&Submit=Submit EOD; // SHOW HOW TO RETRIEVE DATA FROM THE API $xml = file_get_contents($url); $obj = SimpleXML_Load_String($xml); echo '<pre>'; var_dump($obj);
The only problem is, I cannot get that to work with the above code. How can I access the data from this link?