Working With Files in PHP, Part Two


Posted

in


John Coggeshall:

Welcome back to PHP Foundations. Last time I introduced you to the basic file access methods available to PHP: fopen(), fputs(), and fgets(). Although very useful, these functions work only with strings. This week I’ll introduce to you more advanced file access functions that read and write binary files. We’ll talk about fread() (used for reading), fseek() (used to find specific parts of a given file), along with a few other useful file access functions.