PHP - Files
Manipulating files is a basic necessity for serious programmers and PHP gives you
a great deal of tools for creating, uploading, and editing files.
This section of the PHP tutorial is completely dedicated to how PHP can interact
with files. After completing this section you should have a solid understanding of
all types of file manipulation in PHP!
PHP - Files: Be Careful
When you are manipulating files you must be very careful because you can do a lot
of damage if you do something wrong. Common errors include editing the wrong file,
filling a hard-drive with garbage data, and accidentally deleting a file's contents.
It is our hope that you will be able to avoid these and other slipups after reading
this tutorial. However, we know that there are so many places where code can take
a wrong turn, so we urge you to take extra care when dealing with files
PHP - Files: Overview
The presentation of the file lessons will begin with how to create, open, and close a file.
those basics, we will then cover other important file tasks, such as: read, write,
append, truncate, and uploading files with PHP.
Download Tizag.com's PHP Book
If you would rather download the PDF of this tutorial, check out our
PHP eBook from the Tizag.com store.
Print it out, write all over it, post your favorite lessons all over your wall!
Found Something Wrong in this Lesson?
Report a Bug or Comment on This Lesson - Your input is what keeps Tizag improving with time!