Either add a full path to the file name (ie
'/home/jschatz/foo.htm') or use
chdir. I'm not seeing where in your code a logfile is being opened, but that's a definite permission problem. Make sure you have write permissions there....
BlueLines
Disclaimer:
This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary.