PHP/HTML Tables

Discussion in 'Web Programming' started by X Zero, Aug 13, 2007.

PHP/HTML Tables
  1. Unread #1 - Aug 13, 2007 at 11:39 PM
  2. X Zero
    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0

    X Zero Forum Addict

    PHP/HTML Tables

    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
     
  3. Unread #2 - Aug 14, 2007 at 4:12 AM
  4. Zyloch
    Joined:
    Apr 21, 2005
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0

    Zyloch Member

    PHP/HTML Tables

    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().
     
< Little help asking | [ASP.NET][CLASS] ASP.NET Programming Class, Completely for Beginners! (Awesome!) >

Users viewing this thread
1 guest


 
 
Adblock breaks this site