摘要: //在PHP中可以这样: session('error', $Model->getError()); $_SERVER['DOCUMENT_ROOT']; F:/111www 上传array(1) { ["image"] => array(5) { ["name"] => string(10) "qrcode.jpg" ["type"] => strin... 阅读全文
posted @ 2016-09-27 14:20 伊人世界 阅读(222) 评论(0) 推荐(0) 编辑
摘要: var verifyURL="{:U('stage/verify','','')}"; function change_code(obj){ $("#code").attr("src",verifyURL+"/"+Math.random()); return false; } 看不清 阅读全文
posted @ 2016-09-21 15:58 伊人世界 阅读(92) 评论(0) 推荐(0) 编辑
摘要: indexController.class.php public function scanLogin(){ $key = I('key',''); $name = I('name','xiaosu'); $res = M('scan')->where("keyword = '{$key}'")->find(); $agent =... 阅读全文
posted @ 2016-09-09 18:40 伊人世界 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 元字符 在上面的例子中,^ 、\d 及 $ 等这些符号,代表了特定的匹配意义,我们称之为元字符,常用的元字符如下: 元字符 说明 . 匹配除换行符意外的任意字符 \w 匹配字母或数字或下划线 \s 匹配任意的空白符 \d 匹配数字 \b 匹配单词的开始或结束 ^ 匹配字符串的开始 $ 匹配字符串的结束 [x] 匹配x字符,如匹配字符串中的 a... 阅读全文
posted @ 2016-09-08 15:08 伊人世界 阅读(106) 评论(0) 推荐(0) 编辑
摘要: //启动svn//杀死已存在的svn服务 ps -ef|grep svnserve root 4967 1 0 Aug23 ? 00:00:00 svnserve -d -r repository/ 这里 kill -9 4967杀死进程, 此4967为进程号 svnserve -d -r /opt 阅读全文
posted @ 2016-09-01 12:26 伊人世界 阅读(197) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-08-26 20:35 伊人世界 阅读(0) 评论(0) 推荐(0) 编辑
摘要: var employees = [ { "firstName":"John" , "lastName":"Doe" }, { "firstName":"Anna" , "lastName":"Smith" }, { "firstName":"Peter" , "lastName": "Jones" } ]; 可以像这样访问 JavaScript 对象数组中的 阅读全文
posted @ 2016-08-24 15:19 伊人世界 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 该函数是一个自动加载函数,如果当我们实例化一个未定义类的时候,就会触发。现在基本上好多主流的框架都使用了延迟加载技术,例如Yii,Tp等等。所以我们也需要了解一下。 __autoload() 因为 spl_autoload_register() 是在 __autoload() 的基础上进行封装的,所以我们首先先看一下这个函数。 Man.class.php __autoload.php ge... 阅读全文
posted @ 2016-08-23 01:25 伊人世界 阅读(198) 评论(0) 推荐(0) 编辑
摘要: chmod("/somedir/somefile", 755); //赋权限 $arr = explode("/Application",dirname(__FILE__)); $ordPath = $arr[0].'/Public/aj/index.html'; $newPath = $arr[0].'/Application/Stage/View/Index/index'.$id.'... 阅读全文
posted @ 2016-08-19 00:20 伊人世界 阅读(173) 评论(0) 推荐(0) 编辑
摘要: TP框架配置中默认URL_MODEL=1,而Nginx默认是不支持PATHINFO的。如果我们只想跑起来tp框架,很简单,只需到更改TP配置,设置URL_MODEL=3(兼容模式)。但是如果要让Nginx支持ThinkPHP PATHINFO需要做如下配置: 1、设置ThinkPHP URL模式URL_MODEL=1; 2、修改nginx配置文件(红色部分更改称相应的内容) server ... 阅读全文
posted @ 2016-08-17 18:58 伊人世界 阅读(7491) 评论(0) 推荐(0) 编辑
Fork me on GitHub