Monday, June 1, 2009

how to print to standard error in php

php has a function to print message to standard error which normally will be in the log file set by apache.

this function is error_log($message). Example:

<?php
error_log('some error message');
?>

References:
http://php.net/manual/en/function.error-log.php

0 comments:

Post a Comment