Hi, as far as your listing .exe files question, I have made a script to do just that. I have a whole thread about it at http://www.phpbuilder.com/board/showthread.php?s=&threadid=10222157 The bottom post has the final script and I'll also post it below. In the script you'll see two variables at the top $folder and $extension. Just change those two to what you need, ex: folder "." and extension "exe". This will display all the .exe files in a specific folder and create links to them. The link name is the same as the file name but replaced "_" with " " <<space. You can change the output/links as you need them. Look at the thread for more details.
<?php
$folder = ".";
$extension = "exe";
$extsize = strlen($extension)+1;
if ($handle = opendir($folder)) {
while (false !== ($file = readdir($handle))) {
if (ereg(".$extension$",$file)) {
$filename = (substr($file,0,strlen($file)-$extsize));
$filename = ereg_replace("_", " ", $filename);
echo "<a href=\"$folder/$file\" target=\"_blank\">$filename</a><br />\n";
}
}
closedir($handle);
}
?>