::Help:: Is there any script/program that will ...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Trixxxia
    Confirmed User
    • Aug 2004
    • 5600

    #1

    ::Help:: Is there any script/program that will ...

    Any program that will make a list of every file on your server & perhaps save it locally as a txt file?
  • Intrigue
    Confirmed User
    • Feb 2004
    • 662

    #2
    I Could hook something up for you. Hit me up 297994306

    Comment

    • European Lee
      Confirmed User
      • Dec 2002
      • 7133

      #3
      Patricia..

      Try this...

      PHP Code:
      <?php 
      
      // PRINT DOMAINS 
      
      $dirhandle= opendir("/www/virtual/gamedia/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>"); 
      } 
      
      ?>
      Cut n paste that into notepad, save it as domains.php or whatever, upload to a domain and call it from the web

      Regards,

      Lee
      YOUR TRAFFIC IS SAFE WITH US - CONDOM CASH
      PUTTING THE GAY ADULT INDUSTRY ON YOUR PC!!
      AFFORDABLE 2257 COMPLIANT GAY + BI CONTENT

      Comment

      • swedguy
        Confirmed User
        • Jan 2002
        • 7981

        #4
        Or you can SSH to your server and type this:

        find /folder/to/start/in -print > list.txt

        list.txt will contain a nice formatted list with every file from /folder/to/start/in (change it to where you want to start) and up.

        Comment

        • Trixxxia
          Confirmed User
          • Aug 2004
          • 5600

          #5
          Originally posted by swedguy
          Or you can SSH to your server and type this:

          find /folder/to/start/in -print > list.txt

          list.txt will contain a nice formatted list with every file from /folder/to/start/in (change it to where you want to start) and up.
          Thanks swedguy ;)

          Comment

          Working...