Skip to content

Instantly share code, notes, and snippets.

@rnavarro
Created August 16, 2012 18:55
Show Gist options
  • Save rnavarro/3372624 to your computer and use it in GitHub Desktop.
Save rnavarro/3372624 to your computer and use it in GitHub Desktop.
<?php
$files = scandir(__DIR__ . '/mongoose/js');
foreach ($files as $file) {
if (stripos($file, '.js') !== FALSE) {
echo '<script type = "text/javascript" src = "' . $file . '"></script>'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment