Page 1 of 1
FOPEN
Posted: Tue Dec 09, 2003 4:45 pm
by goblinhybrid
if a file doesn't exist will fopen() create one by default? if not, how do i check if a file exists and create a new one??
Posted: Tue Dec 09, 2003 5:22 pm
by qads
yep, fopen will make a file if there ist one already, to see if a file exists you can use [php_man]file_exists[/php_man].
Posted: Wed Dec 10, 2003 10:38 am
by goblinhybrid
thanks
is there a way to make a new file on its own?
also, is there a way to create a directory?
Posted: Wed Dec 10, 2003 11:56 am
by qads
[google]file manipulation with php[/google]
[google]dir manipulation with php[/google]
above has tutorials on both subjects.
enjoy.