Space Weather addon page for WD-AJAX-PHP-USA
You can see my Space Weather Script in use here:
This script will show a space weather forecast page, Real Time Images of the Sun, and graphs of Real Time Solar X-ray and Solar Wind. It shows the 3-day space weather forecast from the NOAA / Space Weather Prediction Center. Also included are 9 PHP images that are cached locally on your server.
Version: 1.2.1 - 30-Sep-2011
- updated image URL for Mauna Loa Solar image
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.
Version: 1.1 - 24-Oct-2009
- Added more images and graphs.
- Image PHP files updated to latest version of the image handler, fixes error 004 on some servers
404 Not Found - Long Beach Weather - Long Beach, WA USA
Installation (USA carterlake php template sites)
You must already be running the USA carterlake php template
Step 1)
Download:
www.642weather.com/weather/scripts/wxspace.zip
Step 2)
Upload these files to your web server:
wxspace.php
image-space-aurora.php
image-space-aurora-s.php
image-space-eit-284.php
image-space-eit-304.php
image-space-sat-env.php
image-space-solar-cycle.php
image-space-solar-disk.php
image-space-solar-wind.php
image-space-xray.php
Step 3)
test your page:
www.yoursite.com/wxspace.php
A paypal donate button is on my scripts page
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.
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.