Salutations,
All is NOT, I repeat NOT lost. You have an array of options (laugh that was a geek joke) to work with. First you can set the php.ini file to auto direct error messages to the web servers log file, like thus:
log_errors = On
error_log =
some/place/you/want/your/log/php.log
simply apply these changes in the .ini file and zip-pi-di-do-da all your woes will be logged away, ok?
last but NOT i repeat NOT least, is the format of the error_log funciton.
And it follows as thus :
error_log("Error Message", MessageType, "destination", "Extra Headers");
The Error Message is the actual error message recieved; the message type is the code signifying where you want the message sent .
The 4 possible values for that param., are as follows:
0 PHP error log
1 e-mail address supplied in third arg.
2 A PHP debug connection - only when debugging has benn enabled
3 A destination log file, with specified path in third argument
The third arg. takes an e-mail address or file path and the fourth arg. can be used to send extra info. in the form of e-mail headers, when used with an e-mail address.
-- As taken from the beggining PHP 4 book {page 257-258}
Well, that's all there is too it. I had run into that a few months back so finding the documentation was difficult. Hope that puts a zinger on your day!
One of those people under the stairs,
COPE