摘要:
1、写文件<?php //写文件 $file_path="text.txt"; if(!file_exists($file_path)){ echo "文件不存在"; exit(); } //"a+" 在文件后面追加 "w+"重新写入 $fp=fopen($file_path,"w+"); $con="\r\n你好"; for($i=0;$i<10;$i++){ fwrite($fp,$con);} echo "添加成功"; fclose($f 阅读全文
posted @ 2013-05-12 02:19 Step at a time 阅读(231) 评论(0) 推荐(0) 编辑