function download_file($file){ if(is_file($file)){ $length = filesize($file); $type = mime…
<?PHP /** * 上传图片 */ class imgUpload{ static protected $a; protected $formName; //表单名称 p…
require './class.phpmailer.php'; $mail=new PHPMailer(); $mail->ContentType="text/h…
<?php defined('ACC')||exit('Access Denied'); // 封装mysql操作类,包括连接功能,及查询功能. class mysql ex…
<?php class FileUpload{ private $filepath; //设置上传文件的路径 private $allowtype=array('jpg','…
<?php $handle = @ fopen ( "demo.txt" , "r" ); if ( $handle ) { whil…
处理代码: <?php header('Content-Type:text/html;charset=UTF-8'); //准备接收 /* echo '文件名:'.$_FIL…
<?php if(strpos($_SERVER["HTTP_USER_AGENT"],"MSIE 8.0")) echo "…
microtime():获取毫秒级的UNIX时间戳 <?php $t=microtime(); /* 你要执行的代码 */ echo "哦啦啦啦啦啦啦啦"…
<?php //note 设置PHP超时时间 set_time_limit(0); //note 取得样式文件内容 $styleFileContent = file_get_…
用户无意义的频繁跳转、请求都会给服务器加重很多负担 其实 用cookie就可以防止这一点。 <?php error_reporting(0); //if($_COOKIE[&…
<?php //error_reporting(0);//关闭错误报告 include_once("simple_html_dom.php");//引入解…