php inserting table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nicholai
    New Member
    • Nov 2007
    • 1

    #1

    php inserting table

    good morning!

    i want to make a table in my program, what will i do? this is my program
    [code=php]
    <?php
    $file = "CHECK.TXT" ;
    echo "<table style=\"border: 0px solid black;\"> \n";
    $file_handle = fopen($file,"r" );
    $y = fgetss($file_ha ndle,1024);
    $x= htmlentities(fi le_get_contents ($file)). "<br/>";

    echo "<td style=\"border: 1px solid black; width: 25px; padding:4p//x; text-align:center;\" >";
    echo "<pre>".$x."<pr e/>","<br/>";
    fclose($file_ha ndle);
    ?>[/code]

    this is the output of my program that i want to have a table:

    Volume in drive C has no label.
    Volume Serial Number is ACF3-92D1

    Directory of C:\Documents and Settings\Hitosh i Hyoda

    2007/09/08 12:45 <DIR> .
    2007/09/08 12:45 <DIR> ..
    2007/03/01 16:52 290 1.txt
    2007/04/24 07:03 <DIR> ChikkaDefault
    2007/11/20 08:16 <DIR> Desktop
    2007/11/16 16:56 <DIR> Favorites
    2007/06/01 07:56 <DIR> logs
    2007/11/19 17:00 <DIR> My Documents
    2007/11/20 07:01 4 pid.txt
    2007/11/20 07:01 152 PluginManager.l og
    2007/06/14 12:02 23 presets.ini
    2007/09/08 12:45 <DIR> Saved Games
    2007/11/19 12:44 <DIR> Start Menu
    2006/09/26 00:31 <DIR> WINDOWS
    4 File(s) 469 bytes
    10 Dir(s) 5,583,568,896 bytes free



    plese help me! thank you!
    Last edited by pbmods; Nov 29 '07, 01:57 AM. Reason: Added CODE tags.
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, Nicholai. Welcome to TSDN!

    Have a look at this thread.

    Comment

    Working...