Hi there. I tried the following:
This code is for the stubscript.php file
<?php
# Stub program to invoke NWS forecast and just print icons
#
$doPrintNWS = false; // don't print output.. just return values (and status in HTML comments)
$_GET['z'] = 1; // or the number in the $NWSforecasts array of the forecast you want
$maxIcons = 9; // set to number icons to print
include_once("advforecast4.php");
?>
<table>
<tr valign ="top" align="center">
<h4>Updated: <?php print $forecastupdated; ?></h4>
</h3>
<h5><?php print $forecastwarnings; ?></h5>
<?php
for ($i = 0; $i < $maxIcons; $i++) {
print "<td style=\"width: 11%;\"><span style=\"font-size: 8pt;\">$forecasticons[$i]</span></td>\n";
}
?>
</tr>
<tr valign ="top" align="center">
<?php
for ($i = 0; $i < $maxIcons; $i++) {
print "<td style=\"width: 11%;\">$forecasttemp[$i]</td>\n";
}
?>
</tr>
</table>
advforecast4.php file is for the Miami, Florida forecast.
No problem when I open the stubscript.php file and advforecast4.php files independently in the browser...Both shows the Miami Forecast.
However, when I paste this code: <?php readfile("https://site.com/stubscript.php"); ?
in the index.php file it shows the same content as the advforecast2111.php in the index page (Orlando, FL forecast).