X Zero Forum Addict Joined Jan 21, 2007 Sythe Gold 0 Messages 577 Location Australia, The South Aug 13, 2007 #1 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
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
Z Zyloch Member Joined Apr 21, 2005 Sythe Gold 0 Messages 63 Aug 14, 2007 #2 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().
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().