It seems some users did not realized that you were running your pages on a locally installed XAMPP which is a local development environment not accessible from the outside word (or the Internet).
First thing, is it possible to have a 'real' first name for the 'sparkynerd' nickname ... thank you.
You did write in one of the previous messages that you were using the unmodified template set (ie: stock template with no custom code). Other than simple settings, have you modified anything else?
Just to be clear with previous statements, the variable '$moonage' is not produced by the 'get-USNO-sunmoon.php' script - I just double-checked.
I am not sure where to go from here
We have not gone anywhere yet.
For my tests, I am using an unmodified version of the 'ajax-dashboard.php' script (the only modifications I made to this 'bare' installation of the US template set were made in the 'Settings.php' script).
OK, here is something you could add to the 'ajax-dashboard.php' script, just after line # 284 - notice that line # 284 has been commented out by putting the double slashes in front of the line:
Code: Select all
// if(!isset($moonage)) {$moonage = 'Moon age: '.$mooninfo->age.','.$mooninfo->ill.'%'; }
echo '<br>';
if( !isset( $moonage )) {
echo '<br>$moonage has not been set yet';
$moonage = 'Moon age: '.$mooninfo->age.','.$mooninfo->ill.'%';
echo '<br>$moonage has now been set and contains the following:';
echo '<br>' . $moonage;
}
else {
echo '<br>$moonage has already been set and contains the following:';
echo '<br>' . $moonage;
}
echo '<br><br><br>';
This is what I get, on the top left side of my screen just above the display of the weather data:
Code: Select all
$moonage has not been set yet
$moonage has now been set and contains the following:
Moon age: 2 days, 16 hours, 28 minutes,10%
The information displayed for the moon age will vary slightly as you are at a different location and time. Just to check everything, I did a dozen refresh of the browser screen with the same results as every time the 'ajax-dashboard.php' script, the variable '$moonage' gets reinitialized with the data produced by the 'cGetMoonInfo()' function.
What are you getting?