Fclose

File I/O in PHP

Submitted by Yorkiebar on
Introduction: This tutorial is on how to perform file I/O in PHP. I/O? I/O stands for Input/Output, and means writing/reading to/from files on the system. PHP Tags: First we need three things; The file you want to write the contents to - this can be pre-existing, or not. The contenst to write to the file. The default PHP tags, ready to write our PHP code. Here are the PHP tags, in which we will write our code...