Skip to content

Instantly share code, notes, and snippets.

@fjorgemota

fjorgemota/index.php Secret

Last active Feb 1, 2016
Embed
What would you like to do?
<?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