Is the Weather Underground History script working? Thought I would give it a try to implement it. Not working for me.
http://www.bismarckweather.net/wxwuhistory.php
Added this to my Settings.php file.
###########################################################################
# WU-History settings
$SITE['WUID'] = 'KNDBISMA26'; // set to Wunderground ID (upper case)
//$SITE['WUunits'] = 'E'; // units to display 'E'=english, 'M'=metric, 'B'=both
// comment $SITE['WUunits'] above out to use uomTemp to select English or Metric
$SITE['WUstationname'] = 'Bismarck, North Dakota, USA'; // for legend at bottom of page
$SITE['WUbirthday'] = '03-12-2016'; //Stations first day of operation format dd-mm-yyyy
###########################################################################
When running
http://www.bismarckweather.net/wxwuhistory.php the rest of the page remains empty => no footers a.s.o.
The reason is either a parser error or a 500 error.
As error reporting is suppressed the errors are not displayed and we are left in the dark (or better white) what is happening.
Please find in wxwuhistory.php the lines with
include("menubar.php");
############################################################################
and change to
include("menubar.php");
ini_set('display_errors', 'On');
error_reporting(E_ALL);
############################################################################
This will probably display the errors.
When checking the generated html the last thing displayed is "<div id="main-copy">", the errors seem to occur in the included script
<div id="main-copy">
<?php include_once("WU-History-inc.php"); ?>
I compared your version of WU-History-inc.php
http://www.bismarckweather.net/WU-History-inc.php?sce=viewwith the one from @PaulMy
http://www.komokaweather.com/komokaweather-ca/WU-History-inc.php?sce=viewand
1. they are very different, yours is from 2008, his from 2016
2. yours has no ssl support which is needed for accesing WU nowadays.
You are also running PHP Version: 7.0.26 according to
http://www.bismarckweather.net/check-fetch-times.php@paulMy is using 5.6
And 7.0.26 does not work well with the socket connect-script to load from WU.
Better upgrade the scripts first.
I attach a version which should work, I think so.
It is a copy of @PaulMy version but using CURL instead of fsockopen in the getcsvWithoutHanging function at the bottom of the script.
Wim