Skip to content

Instantly share code, notes, and snippets.

@macmladen
Last active August 29, 2015 13:56
Show Gist options
  • Save macmladen/8844901 to your computer and use it in GitHub Desktop.
Save macmladen/8844901 to your computer and use it in GitHub Desktop.
<?php
/**
* You can easily parse command line arguments into the
* $_GET variable by using the parse_str() function.
*/
parse_str(implode('&', array_slice($argv, 1)), $_GET);
/**
* PHP error reporting activation
*/
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment