用PHP读取文件并写入

<?php
$file = fopen("test.txt","w");//参数w表示重写文件  参数 a  表示在原有文件上追加
echo fwrite($file,"Hello World. Testing!");
fclose($file);
?>
posted @ 2014-03-03 13:32  代码收集-ASP。JS代码  阅读(188)  评论(0编辑  收藏  举报