摘要: public function _initialize(){ //$top_img = M('adv')->where(array('adv_id'=>1057))->find(); //this->assign('top_img',$top_img); echo "2342... 阅读全文
posted @ 2017-09-20 20:53 不拨牙 阅读(111) 评论(0) 推荐(0)
摘要: $phonenumber = '13712345678'; if(preg_match("/^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|17[0-9]|18[0|1|2|3|5|6|7|8|9])\d{8}$/",$phonenumber)){ ... 阅读全文
posted @ 2017-09-20 20:53 不拨牙 阅读(614) 评论(0) 推荐(0)
摘要: __MODULE____CONTROLLER__ 阅读全文
posted @ 2017-09-20 20:53 不拨牙 阅读(174) 评论(0) 推荐(0)
摘要: 3、增加用户: (注意:和上面不同,下面的因为是MYSQL环境中的命令,所以后面都带一个分号作为命令结束符) 格式:grant select on 数据库.* to 用户名@登录主机 identified by “密码” 第一种: 增加一个用户test1密码为abc,让他可以在任何主机上登录,并对所 阅读全文
posted @ 2017-09-20 20:53 不拨牙 阅读(306) 评论(0) 推荐(0)
摘要: 当前url 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; 当前文件路径 dirname(__FILE__)header("Content-type:text/html;charset=utf-8"); 阅读全文
posted @ 2017-09-20 20:53 不拨牙 阅读(100) 评论(0) 推荐(0)
摘要: ``` 软件下载官网:https://git-scm.com/ ******************** centos 安装 git ************ #yum install git ********************运行php文件***************** php [php文件名] *****************基本命令**************... 阅读全文
posted @ 2017-09-20 13:46 不拨牙 阅读(203) 评论(0) 推荐(0)