That might be the place to look Zap, but based on Susan’s comments, I figured there wasn’t an easy way. The code for using fopen would be something like this:
/////Read the file and establish all the output variables (For Weather.com)
$url = "http://www.myurl.com";
$handle = fopen($url, 'r');
$contents = fread($handle, filesize($url));
fclose($handle);
Now, the reason you are probably getting an error is because you must have allow_url_fopen enabled. If it is switched off, PHP will emit a warning and the fopen call will fail.
If you do not have the ability to enable fopen, you may try curl, which can be accomplished by something like this:
// create a new cURL resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
curl_setopt($ch, CURLOPT_HEADER, 0);
// grab URL and pass it to the browser
$newsletter = curl_exec($ch);
// close cURL resource, and free up system resources
curl_close($ch);
return $newsletter;
?>