PHP Tutorials | PHP Open File >>

PHP File Tutorial

Welcome! Thanks for choosing this site to use as a learning tool :) In this tutorial you will learn how to manipulate files using the file handling functions in PHP. You will learn how to successfully open, read, write, truncate, delete and do much more to a file.

PHP Requirements

This tutorial uses functions that require a minimum PHP version of 4.3.3. PHP 5 has been released and PHP 6 is on the way, so you should at least have version 4.3.3 :)

Security

Security is an issue while dealing with files. You should never grant access to functions that allow reading/writing of private files. You should also always make sure you know what file you are dealing with, as you may delete/overwrite an important file. You must also make sure that you don't create hundreds of files that will use up all your disk space :P

PHP Tutorials | PHP Open File >>