PHP: Files, Cookies, Sessions, Databases




CS174

Chris Pollett

Feb 29, 2016

Outline

File Reading

File Writing

File Locking

Permissions and Unix-like File Manipulation

Directory Handling in PHP

Cookies

Cookies in PHP

Quiz

Which of the following statements is true?

  1. PHP can only be run as a Web Server module.
  2. PHP's $_REQUEST variable is an associative array that gets automatically set up for you with the contents of both the POST'd or GET'd form variables.
  3. Local variables in a PHP function can be initialized using the local keyword.

Sessions

Database Management Systems and Databases

MySQL Databases