Simon I dont use that php program so I dont have the source. I would look for some additional characters perhaps which dont show in a browser but might stop the program. From here I cant see anything but you might if you edit the text file locally.
I have removed Day 7 and its now working, but i cant see anything untoward, this is what was removed
<FONT COLOR="#3333FF" SIZE=+2 style="font-family: Arial"><B>Averages\Extremes for day :07</B></font>
------------------------------------------------------------
<FONT COLOR="#3333FF">
Any Special weather conditions for the day:
<img SRC="---.gif" height=66 width=89>
Freezing fog affecting some parts of the region may persist all day in
places, especially over Northamptonshire and Leicestershire. Sunshine
is most likely in the north of the region and it will be dry and very cold
generally. Maximum temperature 0C.
<FONT COLOR="#000000" style="font-family: Fixedsys">
Average temperature = -6.6
The problem can be a non-printable character, look at what the php code uses to determine the end of file, if it is checking for EOF then it should not end prematurely but if it looks for something else then look for whatever that is in the text. Some editors like ConTEXT allow special characters to be highlighted. What happens if you recreate the file in WD?
Hi Stuart, i just had a quick look at the wxhistory.php and nothing stood out, also the same for include-wxhistory.php again nothing stands out to me anyway lol
Nothing stood out in ConTEXT either, just installed it
WD creates December2010 no problems, all the data is in there as it should be…
The problem is related to the word “sunshine” in the special weather conditions. Change it to sonshine and it displays properly.
Any Special weather conditions for the day:
Freezing fog affecting some parts of the region may persist all day in
places, especially over Northamptonshire and Leicestershire. Sunshine
is most likely in the north of the region and it will be dry and very cold
generally. Maximum temperature 0C.
The script appears to be doing a match on that word for sunshine hours purposes and finding it in the special weather conditions section throws it for a loop.