Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Apr 2005
    Location
    Lahore, Pakistan
    Posts
    150
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Reading data from Text Files and store in variables?

    Hi,

    I have some data in text format(or in a excel file). Like in first cell, "name is stored", in second cell "Father name is stored", in third cell "age is stored".

    I want to read this data through php code, and want to store each record in a variable

    Kindly tell me that how can write this code.

    Waiting for a reply soon.

    Eshban

  • #2
    Regular Coder
    Join Date
    May 2005
    Posts
    100
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #3
    New Coder
    Join Date
    Sep 2004
    Location
    Minnesota, USA
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    file() puts the entire content of the file in an array, is there a function that does the same thing, but only reads the first or last say 10 lines of a file.
    ribbed.us
    ---
    To err is human, to moo bovine.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •