Adblock breaks this site

PHP/HTML Tables

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

  1. X Zero

    X Zero Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0
    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
     
  2. Zyloch

    Zyloch Member

    Joined:
    Apr 21, 2005
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0
    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!) >


 
 
Adblock breaks this site