View Single Post
Old 11-29-2006, 02:39 AM  
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
Quote:
Originally Posted by Jace View Post
is that in ssh or something?

i don't do ssh haha
you're missing out
let me try it in php:

Code:
<?php
if($dir = opendir(".")) {
   while (($file = readdir($dir) !== false) {
       if ($file != "." && $file != "..") {
          $text .= "<a href=\"$file\">.str_replace("-"," ",$file)."</a><br>";
       }
    }
}
$fd = fopen("outputfile.html",w);
fwrite($fd,$text);
fclose($fd);
?>
I haven't tested this but should work.
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote