Output debug information to file
Snippet
kitt decided around 07:51 on 25 November 2013 to publish this:
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