04 2018 档案
摘要:php发送邮件 -------------------------------------------------------------------------------- "; link = fsockopen(smtp,25);//socket链接 if($link){ set_...
阅读全文
摘要:切换验证码 document.getElementById('img_code_1').src="__URL__/verify/"+Math.random(1,9999); 生成验证码 <img src="{:U('Home/User/verify',array())}" id="img_code_
阅读全文
摘要:<?php namespace Home\Model; use Think\Model; class UserModel extends Model{ protected patchValidate = true; protected _validate = array( ['username','require','请输入用户名'], // 在新增的时候验证name...
阅读全文
摘要:在Common目录中建立 function.php {$vo.goods_name|subtext=10} 调用方法传参数
阅读全文
摘要:在元素中添加onmouseover="this.style.cursor='hand'"或者 cursor:pointer;
阅读全文
摘要:在php.ini下进行更改 查找disable_function 去掉exec xsell_exec 重启php
阅读全文
摘要:servers = servers; foreach (servers as $server) { for (i = 0; i virtualNodeNum; $i++) { this->nodeList[sprintf("%u", crc32(server.'-'.i))] = array(se...
阅读全文
摘要:解决该问题需要 清除缓存文件 将retime下的文件删除
阅读全文
摘要:{$vo.create_time|date="Y-m-d H:i:s",###}
阅读全文
摘要:<form action="demo_form.asp" method="get"> Select images: <input type="file" name="img" multiple="multiple" /> <input type="submit" /> </form>
阅读全文
摘要://获取上传token Vendor('sdk.autoload'); accessKey='********'; secretKey='*******'; auth=new \Qiniu\Auth(accessKey,secretKey); token=$auth->uploadTok
阅读全文
摘要://返回服务器真实路径 Absolute_Path=_SERVER['SCRIPT_FILENAME']; //截取index.php Absolute_Path=substr(Absolute_Path,0,-9).'/Public';
阅读全文