Skip to content

Instantly share code, notes, and snippets.

@alexclifford
Created August 6, 2015 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexclifford/daee71a1bde97ed5546b to your computer and use it in GitHub Desktop.
Save alexclifford/daee71a1bde97ed5546b to your computer and use it in GitHub Desktop.
Some (poor) adhoc PHP debug logging code
file_put_contents('/tmp/foo/bar.txt', print_r(, true), FILE_APPEND);
file_put_contents('/tmp/foo/bar.txt', "5:\n\n", FILE_APPEND);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment