Simple PHP Question

Out of context: Reply #1

  • Started
  • Last post
  • 3 Responses
  • Jnr_Madison0

    "a" - Open file for appending - write only. Places the pointer at the end of the file. Creates file if it does not exist.

    "r" - Open file for reading only. Place pointer at start of file

    "r+" Open file for reading and writing. Place pointer at end of file.

    "W" - Open for writing only. If file already exists then deletes it's contents. If file does not exists, then creates it.

    "w+" - Open file for reading and writing. If file exsits then deletes its contents. If file does not exist then creates it.

    "a+" - Open file for appending - read and write. Place pointer at end of file. Creats the file if it doesn't already exist.

View thread