...

View Full Version : Creating a blank .txt file.



Dalziel
12-15-2003, 09:45 PM
I don't know much about PHP but can someone tell me how do you create a file called all.txt (or anything else with a .txt extension) in the current directory with nothing written into it.

firepages
12-15-2003, 10:42 PM
<?
$fp = fopen( 'all.txt' , 'w' ) ;
fclose( $fp ) ;
?>

Acecool
12-16-2003, 07:06 AM
touch("blah.txt");



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum