PHP Development Board

WM Media - Sell Your Website
Deprecated: Function split() is deprecated in /home/content/69/10884669/html/catalog/title.php on line 35
Social Bookmarking
WL Marketing - Your #1 source for building links

PHP Tutorials--Creating Files with PHP
Newest listings-Add a tutorial-Modify a listing-Getting Rated-Contact webmaster

Main Categories
 Ad Managers
 Chat systems
 CMS systems
 File Manipulation
 HTML/CSS Tutorials
 Link indexing/ Classifieds
 Mailing Lists/E-mail
 MySQL Related
 PHP Basics
 RSS and other feeds
 XML and other parsing
Home>>File Manipulation>>Creating Files with PHP
Creating Files with PHP(4797 views)
Read tutorial now--Report this tutorial

Description: There's no fcreate() function in PHP, so for novice users, it's sometimes hard to figure out how to create a file using PHP. The answer is rather simple. The function fopen() has multiple modes, which determine how the function acts. The modes w, w+, a, a+, x, and x+ will all create the file if it doesn't already exist. Our example will use w+, which opens or creates the file for reading and writing after truncating it.

Resource Specifications
Added:  Tue Jan 23, 2007 23:20:54
Author:  Somecoders