www.webdeveloper.com
Results 1 to 2 of 2

Thread: Modify Text Files

  1. #1
    Join Date
    Mar 2010
    Location
    Canada
    Posts
    65

    Modify Text Files

    I figure out how to write all the entries from my database onto a text file.

    Code:
    header("Content-Type: text/plain");
    header("Content-Disposition: Attachment; filename=test.txt");
    header("Pragma: no-cache");
    exit;
    How do I modify the text file??
    Each entries (or row) have 5 elements in it and there are multiple entries in my database.
    How do I write each elements follow by a comma onto a text file? Each row in the database would have a new line in my text file as well.

    tks

  2. #2
    Join Date
    May 2003
    Posts
    598

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles