Writting fopen() errors to log file?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rxsid
Forum Commoner
Posts: 82
Joined: Thu Aug 29, 2002 12:04 am

Writting fopen() errors to log file?

Post 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!
hedge
Forum Contributor
Posts: 234
Joined: Fri Aug 30, 2002 10:19 am
Location: Calgary, AB, Canada

Post by hedge »

Post Reply