- PHP Scripts
- PHP Contact Form Script
- PHP Image Handler Script
- PHP Webcam Text Overlay Script
- PHP WeatherUnderground Webcam Uploader Script
- SI Captcha for Wordpress Plugin Script
- Wind Direction Graphics Generator Script
- Color Theme Switcher Plugin for WD/PHP/AJAX Website Template Set
- Style Editor for WD/PHP/AJAX Website Template Set
- PHP List Generator Script
Change Log of Weather PHP Scripts by Mike Challis
This is a change log for Weather PHP Scripts I coded for use on this site and for others to use on their weather sites. You are free to download and modify the code for your own non-commercial use. If you use any of my scripts or graphics on this page ... please contact me and let me know ... and I would appreciate a link to Long Beach, WA Weather on your links page. Thanks, Mike Challis
Contact Form PHP Script
- Version: 1.00 28-May-2008 - Initial release
- Version: 1.01 29-May-2008 - fixed session_start warning "headers already sent"
- Version: 1.02 30-May-2008 - fixed "TRIM here" comment syntax
- Version: 1.03 07-Jun-2008 - added config setting for printing $thank_you message after form is sent
- Version: 1.04 07-Jun-2008 - To: [contact] (webmaster, member service, etc) is now printed in the email, fix contacts dropdown, if there is only one contact, no need to "Select" it, added setting for captch library [path]/[folder]
- Version: 1.05 09-Aug-2008 - Spelling correction in $welcome_intro, also shortened it a bit. (no other code changes)
- Version: 1.06 10-Aug-2008 - Now automatically adds numbered keys to the $contacts array for simpler contacts config, changed page title to 'Contact Us', added version print tag into html source, added error message if "captcha_library not found", added features by Kevin Reed at www.tnetweather.com: (Thanks Kevin), Added HTML code to Pass Section 508 and WAI accessibility validation, Added meta tags (WAI Requirement), Added labels for form elements (WAI Requirement), Removed the table since is was not really needed., Added fieldset/legend, Added CSS basics for the form to allow easier enhancement., The entire form is now controlled by the div id of contactform., Some other small changes,. If upgrading to version 1.06 and are integrating into your website template... follow step 4 of the readme.txt and be sure to add the css and meta tags to your html head section
- Version: 1.07 - 11-Aug-2008 - added features: checks for required mail and image functions, fixed bug with truncated string when double quote in name or subject input, Better input string protection, new cleaner code input functions, Renamed all included subroutines with ctf_ prefix so they will not conflict with other scripts, Wordwrap email message text so lines are no longer than 70 characters, Added ini_set sendmail_from, needed for some windows servers, This update is recommended for the bug fix and better security
- Version: 1.08 - 13-Aug-2008 - Added a few settings for email message headers, A few other small fixes
- Version: 1.09 - 13-Aug-2008 - Problem: Warning: mail(): Bad parameters to mail() function, mail not sent., Solution: Removed '. PHP_EOL' from subject line.
Contact Form PHP Script: more about it | download it
SI CAPTCHA for Wordpress Plugin PHP Script
- Version: 1.00 21-Aug-2008 - Initial release
SI CAPTCHA for Wordpress Plugin PHP Script: more about it | download it
Multifunction Image Handler PHP Script
- Version: 1.00 03-Jan-2008 - Initial release
- Version: 1.10 04-Jan-2008 - Bug fix for force reload, bux fix for annotate text "error: Could not find/open font", added feature: option for use percent for resize, added feature: accepts image in same directory on server, won't try to download it, added feature: true type font files are now optionally supported
- Version: 1.20 06-Jan-2008 - Added feature: setting for no resize, added feature: multi line text support, added feature: text alignment options; upperright upperleft lowerleft lowerright center centertop centerbottom, added feature: text margin
- Version: 1.30 07-Jan-2008 - Bug fix for wordwrap true type font text
- Version: 1.40 07-Jan-2008 - Bug fix for text position, not working on vers. 1.30
- Version: 1.50 07-Jan-2008 - Better handling of downloaded file name for local file
- Version: 1.60 08-Jan-2008 - Bug fix for true type fonts, bug fix for local file usage
- Version: 1.70 08-Jan-2008 - Bug fix for chmod error: Operation not permitted on some servers. added feature: setting to chmod images, disabled by default as most servers do not need it. added feature: setting to suppress output for cron job or System Scheduler usage, more compatible for web cam text overlay. added feature: setting for cached image file name, was previously automatic
- Version: 1.81 09-Jan-2008 - Added features: add up to 3 optional text overlays, instead of just 1, added browser output only setting for live demo use (not used in normal operation)
- Version: 1.82 10-Jan-2008 - Improvement: added output image URL link when running in $no_output =1; mode instead of just white screen.
- Version: 1.83 10-Jan-2008 - Added feature, can now archive and auto rotate images with or without thumbs. Feature can be utilized for web cam image archiving. Thanks Jim McMurry at http://www.jcweather.us/ for the feature suggestion
- Version: 1.84 13-Jan-2008 - Fixed jpeg compression bug in archived thumbnail images feature
- Version: 1.85 14-Jan-2008 - Added feature: can now select font colors and font shadow colors
- Version: 1.86 19-Jan-2008 - Added feature: can now crop images, renamed rotate setting variables to archive variables, checks for PHP GD function - gives error if it is not supported
- Version: 1.88 20-Jan-2008 - Added one more error code
- Version: 1.89 23-Feb-2008 - Added better compatibility for cron use file path can now be set with $localDirectory, default setting change: not all php installs have memory_limit enabled so the setting is now commented out by default
- Version: 1.90 04-June-2008 - added setting $cache_only to preserve animated GIFs when you do not need to resize, crop, or text overlay
Multifunction Image Handler PHP Script: more about it | download it
Weather Underground Web Cam Image Upload PHP Script
- Version: 1.0 08-Jan-2008 - Initial release
- Version: 1.1 09-Jan-2008 - Added better error results
Weather Underground Web Cam Image Upload PHP Script: more about it | download it
Color Theme Switcher for WD/PHP/AJAX Website Template Set
- Version: 1.00 06-Mar-2008 - Initial release
- Version: 1.01 07-Mar-2008 added silver theme, fixed menu background color for all wide css themes. To upgrade from vers 1.00: just replace all the css files and the include-style-switcher.php from this zip file
- Version: 1.02 08-Mar-2008 updated all the css files to tighten the line spacing of the navigation links also changed the #main-copy h1 text to not be italic, h1 is used for the big words on that say "Records and Stats" in the wxgraphs.php page To upgrade from vers 1.02: just replace all the css files from the zip file to your server
- Version: 1.03 08-Mar-2008 updated readme.txt instructions for installing, instructions are now more compatible with the default Settings.php of todays release of the Weather Display/PHP/AJAX Website Template Set by Ken True also added 'How to Upgrade' instruction section. This package is now included in the Weather Display/PHP/AJAX Website Template Set as of March 08 2008. Ken True added a setting in Settings.php to disable the the use of Theme Switcher. Now you can enable/disable it without having to install/uninstall it. Ken True now includes my windrose images in his default website Template Set download, so I removed the backup copy of windrose images folder ajax-images-original/ I had added to vers. 1.02, it is no longer needed.
- Version: 1.04 10-Mar-2008 Added Black Theme (dark/light style compatibility fixes for new Black theme) see README.txt inside zip file
- Version: 1.05 10-Mar-2008 Added 7 more Themes. To upgrade from version 1.04 just replace all the css files and the include-style-switcher.php
- Version: 1.06 18-Mar-2008 updated include-style-switcher.php: fixed a small uninitialized variable $CSSwscreenOffChecked bug fixed Red was not in alphabetical order updated all css files: added some css style code for the soon to be released "Go to top of page" floating javascript button To upgrade from vers 1.06: just replace include-style-switcher.php and all the css files from the zip file to your server
- Version: 1.07 29-Mar-2008 slight change to Mocha theme, darkened 'color-dark' style a bit To upgrade from vers 1.06: just replace the mocha css files or all the files (your choice) from this zip file to your server
- Version: 1.08 16-Apr-2008 modified 'subHeader a' in all of the style files to better accommodate language selector flags and text links in subheader. This was done to be more compatible with a soon to be released new template multi-language feature. To upgrade from vers 1.07: just replace all the css files from this zip file to your server
Color Theme Switcher for WD/PHP/AJAX Website Template Set PHP Script: more about it | download it
Style Editor for for WD/PHP/AJAX Website Template Set
- Version: 1.00 06-Mar-2008 - Initial release
Style Editor for for WD/PHP/AJAX Website Template Set: try it now
Drop Down List Generator Plugin PHP Script
- Version: 1.00 30-Dec-2007 - Initial release
- Version: 2.00 01-Jan-2008 - Bug fix: find default month, make sure it exist added feature: verify inputted date files exist, use default if it does not version 2 requires changes in the how to use section refer to "How to use it:" inside the code
- Version: 2.10 12-Feb-2008 - Bug fix: uninitialized value causing error when error warnings are enabled in PHP. Error: 'Undefined variable: datestring'
Drop Down List Generator Plugin PHP Script: more about it | download it
Gratuity
This php code provided "as is," and Long Beach Weather (Michael Challis) disclaims any and all warranties, whether express or implied, including (without limitation) any implied warranties of merchantability or fitness for a particular purpose. Use of this code signifies your acceptance.

