PDA

View Full Version : How do I create a blank ASCII file using PHP?



Grumble
Sat 26th May '01, 11:28am
I'm trying to find the PHP code for creating blank text files....... Its probably different for win/*nix platforms but if anyone could give me some pointers.......

Gossip
Sat 26th May '01, 12:16pm
$asciifile = fopen("./pathname/filename.txt", "w");
fclose($asciifile);


That should do it.