摘要: <?php class PHPZip { private $ctrl_dir = array(); private $datasec = array(); /********************************************************** * 压缩部分 ***** 阅读全文
posted @ 2017-10-19 11:53 没事就更 阅读(857) 评论(0) 推荐(0) 编辑
摘要: <?phpclass validateReturn{ //get return msg function caseReturn($aRerurn) { $strMsg = ''; if(isset($aRerurn['msg_code'])) { switch( intval ($aRerurn[' 阅读全文
posted @ 2017-10-19 11:52 没事就更 阅读(226) 评论(0) 推荐(0) 编辑
摘要: <?phpclass Xml{ /* * $aData 要格式化的数组 * $path xml信息要写入的文件路径 * $version xml文件的版本信息 * $encoding xml文件信息的编码形式 * 返回 : false 数组格式不正确 true 成功 */ private $_str 阅读全文
posted @ 2017-10-19 11:51 没事就更 阅读(176) 评论(0) 推荐(0) 编辑
摘要: /* * 获取文件内容 * */ public function getLocalFileContents($file) { $handle = @fopen($file, "rb"); if ( !$handle ) { return false; } else { $strContents = 阅读全文
posted @ 2017-10-19 11:50 没事就更 阅读(112) 评论(0) 推荐(0) 编辑
摘要: /* * $objXml xml格式对象 * 返回 : 对应格式数组 */ public function XmlString2Arr($xml) { if(is_string($xml)) { $xml = simplexml_load_string($xml); } $aXml = (array 阅读全文
posted @ 2017-10-19 11:48 没事就更 阅读(158) 评论(0) 推荐(0) 编辑
摘要: /* * Method to create file 创建文件 * Parameter : (string)filename, (string)content, (string)create mode * Return : (boolean) */ function create_file( $fi 阅读全文
posted @ 2017-10-19 11:48 没事就更 阅读(140) 评论(0) 推荐(0) 编辑
摘要: /** * 获取随机字符串 * @param $lenth * @return string */ function getRandStr($lenth = 20) { $strData = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0 阅读全文
posted @ 2017-10-19 11:46 没事就更 阅读(118) 评论(0) 推荐(0) 编辑
摘要: /** * 将16进制数串转换为二进制数据的函数 * @param $hexdata * @return string bindata */ function str2bin($hexdata) { $bindata=""; for ($i=0;$i < strlen($hexdata);$i+=2 阅读全文
posted @ 2017-10-19 11:46 没事就更 阅读(5044) 评论(0) 推荐(1) 编辑
摘要: http://www.finalshares.com/read-497?qq-2488 阅读全文
posted @ 2017-10-19 11:42 没事就更 阅读(155) 评论(0) 推荐(0) 编辑
摘要: php __FILE__,__CLASS__等魔术变量,及实例 php __FILE__,__CLASS__等魔术变量,及实例 今天看到一个魔术变量,是以前没见过的,__DIR__,我查了查,发现原来是php5.3新增的,顺便举几个例子,解释一下php的魔术变量 1,__FILE__ 文件的完整路径 阅读全文
posted @ 2017-10-19 11:26 没事就更 阅读(183) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-10-19 11:12 没事就更 阅读(2) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-10-19 11:12 没事就更 阅读(1) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-10-19 11:11 没事就更 阅读(2) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-10-19 11:11 没事就更 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 参数设置 ... 阅读全文
posted @ 2017-10-19 11:10 没事就更 阅读(435) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head><meta charset="UTF-8"> <title>XMLHttpRequest上传文件进度实现</title> <script type="text/javascript"> var xhr; var ot;// var oloaded 阅读全文
posted @ 2017-10-19 11:09 没事就更 阅读(218) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-10-19 11:09 没事就更 阅读(1) 评论(0) 推荐(0) 编辑