SVG to picture converter in PHP http://labs.shikiryu.com/svgtoimage/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

log.php 715B

1234567891011121314151617181920212223242526272829
  1. <?
  2. class Log {
  3. protected $logfile;
  4. function __construct($filename) {
  5. $file = $filename;
  6. $this->logfile = fopen($file, 'a+');
  7. $this->message('Starting log');
  8. }
  9. function message($message) {
  10. $message = '['. date("Y-m-d / H:i:s") . '] @MESSAGE'.' - '.$message;
  11. $message .= "\n";
  12. return fwrite( $this->logfile, $message );
  13. }
  14. function error($message) {
  15. $message = '['. date("Y-m-d / H:i:s") . '] @ERROR'.' - '.$message;
  16. $message .= "\n";
  17. return fwrite( $this->logfile, $message );
  18. }
  19. function __destruct(){
  20. $this->message("Finishing log\n-----------------------");
  21. return fclose( $this->logfile );
  22. }
  23. }