Page 1 of 1

Creating a blank file

Posted: Sat Dec 28, 2002 7:18 pm
by Bennettman
Are there functions to delete files and to create blank files on the server with a specified filename?

Posted: Sat Dec 28, 2002 8:40 pm
by hob_goblin
delete files:
http://php.net/unlink

make a blank file:
http://php.net/fopen

fopen() will try to make the file if the file you try to open does not exist.

Posted: Sat Dec 28, 2002 8:56 pm
by Bennettman
Thanks a lot ^^ I was using those two functions anyway and made a couple other mistakes, but thanks for letting me make sure they were the right ones.