View Single Post
Old 11-29-2006, 02:49 AM  
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by darksoul View Post
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.
hm...almost


Parse error: syntax error, unexpected '{' in /usr/home/keywords.php on line 3
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote