Introduction to Files
In this tutorial you will learn how to open, read, write, rename, remove and upload files using one of the best server-side languages -- PHP. It will overview the fopen() function and the different modes needed to open files. It will then teach you how to read data from a file and output it. Next you will learn about the fwrite() function and about truncating files. Next you will be taught how to use the rename() and unlink() functions to rename and delete files. Finally you are given an introduction into the world of uploading files.