用PHP读取文件并写入
<?php
$file = fopen("test.txt","w");//参数w表示重写文件 参数 a 表示在原有文件上追加
echo fwrite($file,"Hello World. Testing!");
fclose($file);
?>
<?php
$file = fopen("test.txt","w");//参数w表示重写文件 参数 a 表示在原有文件上追加
echo fwrite($file,"Hello World. Testing!");
fclose($file);
?>