I was wondering if anyone knew a script or could write me a script that searches a directory like mydomain.com/replays/ and searches all the file names and if it's found it shows the links to the files? e.g. Index of /replays replay1.gzr replay2.gzr searching replay2 would present a link to replay2.gzr thanks!
i think you need a scipt to index your website . test it : sphider Find it here : http://www.cs.ioc.ee/~ando/sphider/
Actually, as long as you are using it on your local server you are more then welcome to read your own files/directories/structures because you have permission to them // This small block of code also removes the "." and ".." of the file list if ($handle = opendir('/home/username/public_html/path/to/dir')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo "$file\n"; } } closedir($handle); } PHP: