Hi,
I tried this module on WB portable server, fopen is allowed but it want work..
I know this is an old module,but could someone take a look at this code:
$forecast_url = 'http://xoap.weather.com/weather/local/'.$location_id.'?cc=*&prod=xoap&par='.$partner_id.'&key='.$member_key;
$urldata = parse_url($forecast_url);
$filepointer = @fsockopen($urldata['host'], 80, $errno, $errstr, 1);
if (!$filepointer) {
echo '<h2>Weather Data Unavailable</h2>';
} else {
$data = implode('', file($forecast_url));
I am getting an error: Warning: file(
http://xoap.weather.com/weather/local/MWXX0001?cc=*&prod=xoap&par=1165359557&key=117b16b47b0919df) [function.file]: failed to open stream: HTTP request failed! in G:\WebsiteBaker Portable1_2\htdocs\dekar\modules\weathercom\view.php on line 55
Line 55 is the last line..
Or is there some other work around to extract data from
this link