SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2001
    Location
    Rawalpindi, Pakistan
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello!!
    I want detailed article over reading text file through PHP, or any body can tell how to read text file, line by line.

    Thanx
    Aatif Malik

  2. #2
    SitePoint Enthusiast
    Join Date
    Jan 2001
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there are many good basic turorials out there

    heres just one:

    http://www.devshed.com/Server_Side/PHP/PHP101_5/

  3. #3
    ********* wombat firepages's Avatar
    Join Date
    Jul 2000
    Location
    Perth Australia
    Posts
    1,717
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    easiest way line by line is

    $file=file("thistext.txt");

    then $file[0] contains line 1 $file[1] contains line 2...etc etc


Bookmarks

Posting Permissions

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