Page 1 of 1

Writting fopen() errors to log file?

Posted: Fri Jun 13, 2003 1:36 pm
by rxsid
Hi all,

Simple question, just can't seem to find the answer.

When doing an fopen() call....when it fails for any reason, how can I write the error to a text file (to keep an error log), instead of stdout??

btw...my environment is not "web" based, but rather a win2000 LAN intra-net, more like shell scripting work. so i'd like to capture the actual error msgs that appear if these scripts are run from a cmd prompt.

Thanks!

Posted: Fri Jun 13, 2003 1:52 pm
by hedge