Here you go:
<?php
$image_name = "";
$html = implode('', file("
http://www.nnvl.noaa.gov/MediaHome.php?MediaTypeID=1"));
preg_match_all("|MediaDetail.php(.*)Featured Image|Uis", $html, $headers);
$text = $headers[0];
$spot = strpos($text[0],"src");
$image_name = substr($text[0],$spot+4);
$spot = strpos($image_name,"/>");
$image_name = substr($image_name,1,$spot+1);
//echo $image_name;
$image_name = "
http://www.nnvl.noaa.gov/" . $image_name;
echo "<img width='700px' height='490px' src='" . $image_name;
?>
Jim
Jim,
I'm not following what php file manages and takes care of renaming it. The only one I have ever seen is the one on Ken's Satatoga Weather, and it still references the old URL for getting the image.