I see you are using a filename without path, this means you are opening the file in the current directory. But while from command line you know which directory is current, when your script is running as cgi you can't know it, so you should always use fully qualified filenames and/or explicitly set the current directory with chdir.
Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."
In reply to Re: Printing to a file not working
by psini
in thread Printing to a file not working
by zuluwarhelmet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |