Created
April 15, 2014 10:33
-
-
Save yo-iida/10721377 to your computer and use it in GitHub Desktop.
PHP:関数の呼び出し元をさぐる
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $path_str = “ログファイルパス”; | |
| ob_start(); | |
| var_dump(debug_backtrace()); | |
| $ob_result = ob_get_contents(); | |
| ob_end_clean(); | |
| $filedata = date(“Y.m.d H:i:s”,time()).”\r\n”.$ob_result.”\r\n”; | |
| file_put_contents($path_str,$filedata,FILE_APPEND); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment