Output debug information to file
Snippet
Posted by kitt at 07:51 on 25 November 2013
Use file_put_contents to dump debug information to a file.
file_put_contents('/tmp/xxx.txt', print_r($match, TRUE) . "\n", FILE_APPEND); file_put_contents('/tmp/xxx.txt', "wysiwyg is ${wysiwyg}\n", FILE_APPEND); /* tail -f /tmp/xxx.txt # watch the results */
Add new comment