php创建文件

<?php 
$counter_file       =   'aa.txt ';//文件名及路径,在当前目录下新建aa.txt文件 
$fopen                     =   fopen($counter_file,   'wb ');//新建文件命令 
fputs($fopen,   'aaaaaa ');//向文件中写入内容; 
fclose($fopen); 
?>

猜你喜欢

转载自panyongzheng.iteye.com/blog/1182720