Skip to content

Instantly share code, notes, and snippets.

@bxt
Created February 26, 2011 15:19
Show Gist options
  • Save bxt/845291 to your computer and use it in GitHub Desktop.
Save bxt/845291 to your computer and use it in GitHub Desktop.
Debugging PHP in production you can use this to save your logs form growing big
<?php if(rand(1,1000)==42) {trigger_error($debugout);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment