Any program that will make a list of every file on your server & perhaps save it locally as a txt file?
Thanks for any help! ;)
Printable View
Any program that will make a list of every file on your server & perhaps save it locally as a txt file?
Thanks for any help! ;)
Patricia..
Give this a try..
Save that into notepad and name it something like domain.php, upload it to your domain / domains and call it from the web, it *should* give you a listing of every file on any given domain you utilize it on :)PHP Code:
<?php
// PRINT DOMAINS
$dirhandle= opendir("/www/virtual/alan/html");
$number_of_links = 0;
while($filename = readdir($dirhandle)) {
if ($filename != ".") {
if ($filename != "..") {
$filenames[]=$filename;
}
}
}
closedir($dirhandle);
sort($filenames);
for($i=0; $i < count($filenames); $i++) {
print("<FONT FACE=\"Arial, Helvetica\" SIZE=2>$filenames[$i]</FONT><BR>");
}
?>
Regards,
Lee
Thanks Lee,
You're a sweetheart!