<snip> I want to be able to simply FTP a new movie onto the server, and then have the menu update itself. possible? I would also be looking to do something similar with JPGS. </snip>
take a look at http://www.php.net/readdir http://www.php.net/opendir here is some code to help start you echo '<select name="movies">'; if ($handle = opendir('moviesdirectory')) { while (false !== ($file = readdir($handle))) { if (preg_match("/\.mov$/i", $file)) { //the regular expression might have to be modified to allow for the file extensions you want to use echo "<option>$file</option>\n"; } } closedir($handle); } echo '</select>'; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php