Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin
Created March 25, 2015 15:33
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 tommcfarlin/c531b34a67f2c078f89e to your computer and use it in GitHub Desktop.
Save tommcfarlin/c531b34a67f2c078f89e to your computer and use it in GitHub Desktop.
A simple way to set a query string flag in order to test coding that's executed on the server.
<?php
if ( isset( $_GET['is_test'] ) && 'true' == $_GET['is_test'] ) {
// Print out the results of your tests here
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment