#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    usa
    Posts
    39
    Rep Power
    15
    I get the data as a plain text iinto my php file. I have some images in the text file, so how I should make it look good (layoput)and show the images too.
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15

    first open your file and save it in an array.after that you can play around for displaying in right format..

    <?
    $fp=fopen("yourfilename","r");
    //open file for reading

    $array_variable=fread($fp,sizeof("yourfilename"));
    //save it in an array..
    close($fp);
    //close the file after reading that.

    //yea..now you have got all the values in an array...

    for($a=0;$a<count($array_variable);$a++){
    //loop trough the array and print the values..
    echo $array_variable[$a];
    }
    ?>

    Just try to format the array values well..



    ------------------
    SR -
    webshiju.com
    www.jobxyz.com-IT Career Portal
    ezipindia.com--WebStudio


    "The fear of the LORD is the beginning of knowledge..."
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    usa
    Posts
    39
    Rep Power
    15
    SR:

    With your code all I see on my screen is 0. DO you have any idea why?

Similar Threads

  1. Replies: 3
    Last Post: February 17th, 2004, 11:08 AM
  2. help with tables and wordwrapping
    By junkedBrian613 in forum PHP Development
    Replies: 2
    Last Post: February 15th, 2004, 06:42 PM
  3. having trouble reading data from a text file...
    By rcoleman in forum Java Help
    Replies: 10
    Last Post: February 11th, 2004, 11:01 AM
  4. Replies: 2
    Last Post: February 6th, 2004, 08:25 AM
  5. PHP file upload script trouble
    By casbboy in forum PHP Development
    Replies: 9
    Last Post: February 5th, 2004, 08:42 PM

IMN logo majestic logo threadwatch logo seochat tools logo