Skip to content

Instantly share code, notes, and snippets.

@atdt
Created September 2, 2013 03:18
Show Gist options
  • Save atdt/6408937 to your computer and use it in GitHub Desktop.
Save atdt/6408937 to your computer and use it in GitHub Desktop.
<?php
include_once "index.php";
$wgConf = new stdClass();
include_once "{$argv[1]}";
$defined = print_r( array( get_defined_vars(), get_defined_constants() ), true );
$defined = explode(PHP_EOL, $defined);
asort($defined);
$defined = implode(PHP_EOL, $defined);
file_put_contents( "defined-{$argv[1]}.txt", $defined );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment