Thanks for your reply. My comment is on one line. I'll use code tags next time, though. Thanks for that tip. I didn't know about code.
I ran it from the console and from my local web server and it ran just fine.
I put use strict and -wT in all my scripts but I tried without them and it still didn't work.
Thank you for your help,