Space Weather addon page for WD-AJAX-PHP-USA

Im at work, but i remember setting the curl option to 1, and the cached to 0. That has worked for me on the 2 images i got working. i also had to create both image files my self. example: solar-cylce.gif and solar-cycle-cached.gif and set the permissions to both of them too 777.

For me, the .gif images got created when I tested the new page on Wamp localhost on my computer. And as Mike noticed, I forgot to upload the .php files and loaded only the .gif.

I figured out how to get it work on E-rice. If others still need help with it, I can post what i did.

http://www.snoqualmieweather.com/wxspace.php

Mark,

I’m not at home, but I have been watching this thread. I’m interested in putting up space weather and I’m also an E-Rice user, so it’d be great if you could post your steps.

Thanks

Ken

Upload all the files as reccomended By Mike. If the graphics don’t show up, change your Web folder permissions to 717, and then it should work. Don’t worry about changing the permissions back on your Web folder, cause it does it will do it by itself. Worked for me, so hopefully it’ll work for others on E-rice having problems.

Amazing. Thanks. Just changed permissions on /web directory to 717 on my e-rice account and the graphics are displaying. Except for the Latest Mauna Loa Solar Image for some reason. Gotta figure that one out now… Getting closer!

Thanks.

Greg.

Okay I get the basic idea of this info, but cant get my head around regional validity ie is it only of value if your in the states or could it be of value else where in the world.

Anyone have any ideas why all the graphics except the Mauna Loa Solar Image are displaying on my wxspace page???

http://www.tuscawilla-weather.net/wxspace.php

Do you have the permissions set different on that file compared to the rest?

Warning: chmod() [function.chmod]: Operation not permitted in /virtual/users/e16314-17467/web/image-space-solar-disk.php

There is a setting to disable CHMOD in each image php file.

Works now - set the CHMOD option to “0” - worked like a charm - all the graphics are displaying now - Thanks!!

Also set the permissions for all files to 776 - not sure if that made a difference because only that one graphic would not display.

Appreciate the 411 -

Greg.

Got the script up and running after messing with some permissions, but now Im seeing another issue. What would stop the images from updating on their own? If i delete the images in FTP and refresh the page, they get updated, but they wont on their own. Any ideas? Thanks, Mark.

Version: 1.1 - 24-Oct-2009

See new page here:
http://www.642weather.com/weather/space-weather.php

Hi Mike,
i’ve a problem with the new version of your script.
The forecast about 3-day solar geophysical isn’t available.
Probabily Chmod problem?
Thanks,

Alessandro

Hi
Will this work with world mml template? ( I know it says USA template but thought I’d try it, any chance of making it available for world mml?) I have it installed but getting “error 003” where the images should be. I have changed permissions to 777 and set chmod to 0 to no avail.

http://www.weybourneweather.co.uk//wxspace.php

Phil

How often are the images updated? Today is the 24th and:
The 3 day forecast is for the 23rd
The solar wind is for the 22nd
The auroral map is for the 21st
The x-ray flux is up to the 22nd
I can’t see the others dates because they are too small.

http://www.cavecountryweather.com/wxspace.php

What to do if you get Error 003 displayed in the images.
Description of the PHP error:
cannot write to file, you need to adjust the server permission settings.

Solution:
This is a PHP error telling you that your server is setup with too strict file permissions,
not every server is the same so it is not possible to give you one specific solution.
Try changing the folder permissions(CHMOD) to 755, 717, or on some servers 777.

Here is a tutorial on how to change folder permissions using your FTP program.
http://www.stadtaus.com/en/tutorials/chmod-ftp-file-permissions.php

If your host has PHP safe_mode = on, this will cause many PHP scripts to have permission problems and errors.
Ask your host to turn safe_mode off, safe_mode was determined to be a bad idea and will be removed from PHP6.

The 3 day forecast is updated every 3 days, the next update should be on the 26th.
My images are current as of today. Not sure what caused that but you should update to the latest version because I updated all the image files to a new improved version of my image handler script.

Mike,
I’ve added this great plugin to the plugins reference page for the WD/AJAX/PHP templates.
Thanks so much for generating this informative page/plugin.

Best regards,
Ken

BTW… to make it XHTML 1.0-Strict (like my site), I did three things:
1)changed the

into a and moved up the tag for the 3 sun images.
2) removed the target=“_blank” on all the elements (not supported in XHTML 1.0-Strict
3) changed the <img … border=“0” /> to <img … style=“border: none;” /> on all the image statement
then it validates as XTHML 1.0-Strict :slight_smile:

Ken, in this new version I used

instead of the table change so that the “Real Time Images of the Sun” title stays aligned left.

Version: 1.2 - 24-Oct-2009

  • XHTML 1.0-Strict compliant code (even though the template uses XHTML 1.0 Transitional)
  • added links in the credits.