Cloud height problems

Can anyone help. Our cloud height is not working at all I looked at the script and it looks like it is all correct. I can not figure out why it is not working.

Is the end of the script missing? Using ?sce=view I see this as the end


################################################################################
//... you must not have any spaces after thi

and there is no “?>”

The entire script is there and when we test the script it works but it will still not post on either the dashboard or the page itself. can anyone help.

Niko’s correct, the script at http://www.southturnermaineweather.com/cloud-base.php?sce=view has two issues:

  1. the script was edited and saved in UTF-8 character set … for use, the script must be edited and saved in ASCII (ANSI) on windows systems.
    Saving it as UTF-8 puts a special marker at the start of the file (before the first character in the file) and that screws up the image decode by the browser.
    So… edit the file on your system and save it as ANSI to get rid of the marker.

  2. the bottom of the script does seem to be missing stuff, and in particular the


?>

with no trailing spaces or carriage return/linefeed characters. Having blanks (or a UTF-8 file marker) before the starting ‘<?php' or after the ending '?>’ in the file will kill any image decoding in the browser.

Hope this helps… you may need to get a fresh copy of the file from Bashewa and upload that (after editing using Notepad in ANSI mode).

Best regards,
Ken

BTW… you’re also missing the ‘nskc.gif’ in the ./ajax-images/ directory.

Hi Ken and Niko
I went and got a fresh copy of the php file and used notepad to edit the settings. All is back to normal. Thank you both for your assistance. SOmetimes you can lose sight of the obvious after staring at the code for too many hours!

Bob

PS… Ken do you have a copy of the nskc.gif file?..I looked in our backup directory and it is missing from there as well… Gremlins got it!

File is attached


nskc.gif

Thank you!
:slight_smile: