Skip to content

Instantly share code, notes, and snippets.

Daniel Nilsson danijeel

Block or report user

Report or block danijeel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
danijeel / index.php
Last active Aug 29, 2015
List all project, press enter, voliá!
View index.php
foreach (new DirectoryIterator('.') as $fileInfo) {
if($fileInfo->isDot()) continue;
if($fileInfo->isDir()) $folders[] = $fileInfo->getFilename();
if($fileInfo->isFile() && $fileInfo->getExtension() == 'php') {
if (!in_array($fileInfo->getFilename(), array('index.php', 'error.php', '404.php'))) {
$files[] = $fileInfo->getFilename();
You can’t perform that action at this time.