本文共 242 字,大约阅读时间需要 1 分钟。
// 使用 Scotchsy 的笔记本:使用'./1.log'文件进行文件操作 $fp = fopen("./1.log", "a+");// 创建与获取获取参数的方式读取数据
$data = var_export($_GET, true);// 除截尾追加外,其他模式均默认
// 只追加到文件末尾,不会覆盖已有内容fwrite($fp, $data);fclose($fp);// 代码示例来源:Scotchsy Gavin's PHP Reference Manual
转载地址:http://dpzjz.baihongyu.com/