摘要: http://archive.apache.org/dist/httpd/binaries/win32/ Apache msi 下载地址 阅读全文
posted @ 2015-04-30 15:46 /折磨 阅读(126) 评论(0) 推荐(0) 编辑
摘要: http://popub.net:81/script/MSClass.html 阅读全文
posted @ 2014-04-11 10:47 /折磨 阅读(151) 评论(0) 推荐(0) 编辑
摘要: _data = "MEBKM:TITLE:{$title};URL:{$url};;"; } /** * MECARD code * @param string $name * @param string $address * @param string $phone * @param string $email */ public function contact($name = null, $address = null, $phone = null, $email = null) { $this->_data... 阅读全文
posted @ 2014-02-21 11:40 /折磨 阅读(1092) 评论(0) 推荐(0) 编辑
摘要: Session主要分两部分:一个是Session数据,该数据默认情况下是存放在服务器的tmp文件下的,是以文件形式存在另一个是标志着Session数据的Session Id,Session ID,就是那个 Session 文件的文件名,Session ID 是随机生成的,因此能保证唯一性和随机性,确保 Session 的安全。一般如果没有设置 Session 的生存周期,则 Session ID 存储在内存中,关闭浏览器后该 ID 自动注销,重新请求该页面后,重新注册一个 session ID。如果客户端没有禁用 Cookie,则 Cookie 在启动 Session 会话的时候扮演的是存储 阅读全文
posted @ 2014-02-07 17:01 /折磨 阅读(347) 评论(0) 推荐(0) 编辑
摘要: var str ='1,2,3'; var arr = str.split(","); var array1 =[]; var array2 =[]; for(i=0,l=arr.length;i<l;i++){ note = $('#t'+arr[i]).val(); type = $('#type'+arr[i]+' :selected').val() array1.push(note)... 阅读全文
posted @ 2013-11-10 13:36 /折磨 阅读(1178) 评论(0) 推荐(0) 编辑
摘要: function snsShare(snsId, title, content, image, url) { var snsUrl; // 新浪 腾讯 要申请appkey switch (snsId) { case 1: snsUrl = 'http://service.weibo.com/share/share.php?appkey=123456'; snsUrl += '&title='+content+'&pic='+image+'&url='+url; break; case 2: ... 阅读全文
posted @ 2013-10-29 15:01 /折磨 阅读(610) 评论(0) 推荐(0) 编辑
摘要: // 模板引擎配置项var tmplOptions = { evaluate: /\{\{([\s\S]+?\}?)\}\}/g, interpolate: /\{\{=([\s\S]+?)\}\}/g, encode: /\{\{!([\s\S]+?)\}\}/g, use: /\{\{#([\s\S]+?)\}\}/g, useParams: /(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\&# 阅读全文
posted @ 2013-10-29 14:13 /折磨 阅读(2156) 评论(0) 推荐(0) 编辑
摘要: http://phpqrcode.sourceforge.net 的代码很多 找了一个类 用用下载地址用法: require 'cQRCode.php'; $qr = new cQRCode($node_url, ECL_H); $qr->getQRImg()->save($qrimage_path, 90); 阅读全文
posted @ 2013-10-29 09:53 /折磨 阅读(2341) 评论(0) 推荐(0) 编辑
摘要: 使用PHP QR Code类库创建二维码使用举例浏览器输出:文件输出二维码include('phpqrcode/phpqrcode.php');// 二维码数据$data = 'http://s.bookphone.cn';// 生成的文件名$filename = '1111.png';// 纠错级别:L、M、Q、H$errorCorrectionLevel = 'L';// 点的大小:1到10$matrixPointSize = 4;QRcode::png($data, $filename, $errorCorrectionLe 阅读全文
posted @ 2013-10-29 09:29 /折磨 阅读(7666) 评论(0) 推荐(0) 编辑
摘要: $file->filename = trim(drupal_basename($_FILES['files']['name'][$source]), '.'); //在此行下 添加以下代码即可(包括编辑器上传都可用) //对文件进行重命名 防止中文文件名上传bug $file_ext = pathinfo($file->filename, PATHINFO_EXTENSION); $file->filename = date("Ymd") . '_' . date("His" 阅读全文
posted @ 2013-10-29 09:09 /折磨 阅读(238) 评论(0) 推荐(0) 编辑