Output debug information to file
Snippet
Instead of being asleep at 07:51 on 25 November 2013, kitt created 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