...

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

Íkii
02-12-2003, 11:49 AM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum