© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
M. SimonAn Introduction to PHP https://doi.org/10.1007/979-8-8688-0177-8_7

7. File Handling

Mark Simon1  
(1)
Ivanhoe VIC, VIC, Australia
 

PHP includes built-in functions to work with the filing system. This includes functions to read directories and to read and write files. Although typically these files are text files, PHP can work with any binary file. Some binary files, such as image files, can be manipulated by other PHP functions, while others will need additional coding or libraries of code.

Processing text files can be very useful if you have configuration data which you want to use, but need to keep in a simple format for maintenance. Text files can ...

Get An Introduction to PHP : Learn PHP 8 to Create Dynamic Websites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.