LoginSignup
13
12

More than 5 years have passed since last update.

PHPで、簡単にログをファイルに出力する方法

Posted at

概要

色々書くのが、面倒なので簡単な方法を調べました。

ソース

<?php
error_log(print_r($h, true)."\n", 3, 'c:/tmp/aaa.log');

参考

http://unoh.github.io/2007/05/10/php-logging-to-text-files.html
http://jp.php.net/manual/ja/function.error-log.php

13
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
12