04 2018 档案

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