• Log in or sign up for an account here: https://www.sythe.org/login

PHP/HTML Tables

X Zero

Forum Addict
Joined
Jan 21, 2007
Sythe Gold
0
Messages
577
Location
Australia, The South
OK, I Need to be able list the files in a directory and put them into a table and then removing there (.torrent) for the end
 
If you want to loop through the directory, you should check out the code from http://us.php.net/readdir

You can weed out directories using is_dir() and you can build in recursion if you put the code into a function.

As for removing the .torrent from the end, a simple way is to just use str_replace().
 
Runescape Gamblingrunescape gambling
Back
Top