Reading / Writing to text files using PHP.

Discussion in 'Web Design & Coding' started by vern, Sep 16, 2003.

  1. vern

    vern Dominus Political User Folding Team

    Messages:
    1,571
    Location:
    Minnesota, USA
    I want to know how I can read/write to file using PHP. I've gotten to fopen() ... but I don't know how to continue. If I wanted to make script for example that would read text, that would use :: to separate a group of text from another, how would I go about doing that? If anyone has URLs that would help ... feel free to tell me.
     
  2. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
  3. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Well, if you have a file, and you want to read the entire thing to a string, look at file_get_contents();
     
  4. vern

    vern Dominus Political User Folding Team

    Messages:
    1,571
    Location:
    Minnesota, USA
    Much thanks guys. That URL was a big help.