PHP - Working with Files

Openning Files

You will learn how to open a file in PHP by using fopen function.

Reading from Text Files

In this tutorial, we shows you how to read from text files.

Writing to Text Files

You will learn how to write to text files by using fwrite, file_put_contents and fputs functions.

Closing the File

in this tutorial you will learn how to close the file by using fclose function.

Writing Binary Data to a File

How to write a binary data to a file.

Reading Binary Data from File

How to read binary data from a file.

Creating Utilities File Class

Create utilities file class for wrapping common operations on files.

Rss