Skip to content

Instantly share code, notes, and snippets.

@fjorgemota
Last active February 1, 2016 18:04
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 fjorgemota/28934b73af261ef4a218 to your computer and use it in GitHub Desktop.
Save fjorgemota/28934b73af261ef4a218 to your computer and use it in GitHub Desktop.
<?php
require_once(__DIR__.'/../vendor/autoload.php');
$included = get_included_files();
$app = new Silex\Application();
$app->get('/', function() use($app, $included) {
$difference = array_diff(get_included_files(), $included);
$difference = array_values($difference);
return 'Hello World. <br /><pre>'.print_r($difference, true).'</pre>';
});
$app->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment