Enter your Sign-on user name and password.

Forgot password?
  • Follow us on:
Loading video...

Start Learning Now

Our free lessons will get you started (Flash® 10 required).
Get immediate access to our entire library.

Sign up for Educator.com

Features Overview

  • Get on-demand access to our complete library
  • Search and jump to exactly what you need to learn
  • Track your progress
  • Download practice and lesson files
  • *Ask questions and get answers from our community & instructors

Writing to Files

  • fwrite() is used to write the contents of a string to a file that has been opened for writing. It has an alias: fputs().
  • In order to write to a file with fwrite(), an access mode specifier allowing writing must be provided to fopen() when opening the file to be written to.
  • Two commonly used write access mode specifiers are:
    • 'a' (append) - open for writing only; place file pointer at the end of the file; attempt to create file if it does not exist
    • ‘w’ (overwrite) – open for writing only; delete file contents; place file pointer at beginning of file; attempt to create file if it does not exist
  • Additional Resources:

Writing to Files

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

Advanced PHP Training with MySQL