摘要:
10*1024*1024){ echo "过大"; return; } //返回的文件 header("Content-type: application/octet-stream"); //按照字节大小返回 header("Accept-Ranges... 阅读全文
posted @ 2017-03-20 18:37
kevinggk
阅读(297)
评论(0)
推荐(0)
摘要:
1 conn= new mysqli(self::$host,self::$user,self::$password,self::$db); 11 if ($this->conn->connect_error){ 12 die("连接失败".$this->conn->connect_error); 13 ... 阅读全文
posted @ 2017-03-20 18:29
kevinggk
阅读(440)
评论(0)
推荐(0)
摘要:
<?php //传统方式 $file_path="test2.txt"; if(file_exists($file_path)){ //如果是追加写入,则使用a+ //如果全新写入用w+ $fp=fopen($file_path,"a+"); $con="\r\n你好!"; for($i=0;$i< 阅读全文
posted @ 2017-03-20 16:09
kevinggk
阅读(244)
评论(0)
推荐(0)
摘要:
<?php //文件变量 $file_path="test.txt"; if(file_exists($file_path)){ //打开文件 $fp=fopen($file_path,"a+"); //读内容,输入 *****第一种读取方式 $conn=fread($fp, filesize($f 阅读全文
posted @ 2017-03-20 16:06
kevinggk
阅读(312)
评论(0)
推荐(0)

浙公网安备 33010602011771号