php创办文件

WBOY
WBOYOriginal
2016-06-13 13:25:06930browse

php创建文件

<?php $counter_file       =   'aa.txt ';//文件名及路径,在当前目录下新建aa.txt文件 
$fopen                     =   fopen($counter_file,   'wb ');//新建文件命令 
fputs($fopen,   'aaaaaa ');//向文件中写入内容; 
fclose($fopen); 
?>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn