/ Published in: PHP

Write request data to a log file
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php class Logger { protected $fh; public function __construct() { } if(!$this->fh) { throw new Exception('Unable to open log file for writing'); } throw new Exception('Unable to write to log file.'); } } public function __destruct() { } } $logger = new Logger();
Comments
