Re: [PHP] Adding a log file

2003-11-07 Thread John W. Holmes
Erik Osterman wrote: Consider using this // // STDERR logging function // function warn( $msg, $die = 0 ) { $fp = fopen("php://stderr", 'w') or die("Failed to open STDERR"); fwrite($fp, "[".strftime("%Y-%m-%d %T")."] $msg\n") or die("Failed to write to stderr"); fc

RE: [PHP] Adding a log file

2003-11-07 Thread Erik Osterman
code) in $file on line $line '$code'"); print ""; } // Set up the callback assert_options (ASSERT_CALLBACK, 'assert_callback'); Regards, Erik Osterman http://osterman.com/ -Original Message----- From: Robert Sossomon [mailto:[EMAIL PROTECTED]

[PHP] Adding a log file

2003-11-05 Thread Robert Sossomon
I am seeing some errors with a program I wrote and I need to write everything to a log file that the program is doing. The following syntax I KNOW is wrong, but not sure they are important to put here correctly yet. //script addtocart $Addcart (info1, info2) Mysqlquey($addcart) I am seeing random