摘要: 1.直接读取,返回一维数组 如:"test.ini" 的内容:[names]me = Robertyou = Peter[urls]first = "http://www.example.com"second = "http://www.w3school.com.cn" 代码: 结果是:Arra... 阅读全文
posted @ 2015-07-24 17:40 一菲聪天 阅读(1444) 评论(0) 推荐(0) 编辑
摘要: 1.传统的方法 fopen, fclose feof:file、end of file 例子:$file_handle = fopen("c:\\myfile.txt", "r");//使用fopen打开与文件的连接while (!feof($file_handle)) { //使用feo... 阅读全文
posted @ 2015-07-24 17:26 一菲聪天 阅读(3419) 评论(0) 推荐(0) 编辑