I am wanting to find out if the following is possible with PHP inside WordPress.
Basically if I have a directory in my site called \"promos\" that consists of 1 to
Go thou unto http://www.php.net/manual/en/ref.dir.php and look in particular at the scandir function. You can use something like:
$images = array(); foreach (scandir('somewhere') as $filename) if (is_an_image($filename)) $images[] = $filename;
You get to write the is_an_image() function.