PHP error_log April 27, 2012 Pramod T P It sends an error to the server error-log Example <?php $value=2; if ($value>1){ error_log(“An error occured”,1,”info@phpcodez.com”,”From: from@phpcodez.com”); } ?> Output Error message will be sent to the given email address