Skip to content

Instantly share code, notes, and snippets.

@simongcc
Created July 7, 2020 14:24
Show Gist options
  • Save simongcc/43d4e08723c01c64f38246991ef94213 to your computer and use it in GitHub Desktop.
Save simongcc/43d4e08723c01c64f38246991ef94213 to your computer and use it in GitHub Desktop.
<?php
var_dump($this->request);
if( strpos( $this->request, 'SQL_CALC_FOUND_ROWS' ) > 0 ) {
file_put_contents('/volumes/ram/test_'. time() .'.txt', $this->request);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment