Skip to content

Instantly share code, notes, and snippets.

@z2z
Created January 28, 2019 07:55
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 z2z/185a38fe956e592b817c6c071a24f66a to your computer and use it in GitHub Desktop.
Save z2z/185a38fe956e592b817c6c071a24f66a to your computer and use it in GitHub Desktop.
php request log
<?php
// Simple script to write a log of any requests(get/post) in php.
// Log is written in the same directory. request.log
error_log( print_r( $_SERVER, true ),3, dirname(__FILE__)."/request.log" );
error_log( print_r( $_REQUEST, true ),3, dirname(__FILE__)."/request.log" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment