View Full Version : Creating Text Files
missing-score
02-12-2003, 10:05 AM
I would like to know if it is possible to create text files using php. If it is could you give me an example as well.
Cheers
Matt
yup
touch('path/filename.txt');
would create an empty txt file
better yet,
you could write something to it by using the following functions
fopen (http://www.php.net/fopen)
fwrite (http://www.php.net/fwrite)
fclose (http://www.php.net/fclose)
have a gander at the manual
missing-score
02-12-2003, 02:19 PM
Yeah, thats what I want. Cheers.
I am already familiar with file handling, I just needed that.
Matt
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.