上一页 1 ··· 170 171 172 173 174 175 176 177 178 ··· 198 下一页
摘要: 1.安装 coreseek-3.2.14 遇到问题:“ERROR: cannot find MySQL include files,随即在网上搜索各种答案说是要找到mysql.h的正确路径加入./configure才行,可惜找之不到,后来在官网(http://dev.mysql.com/doc/re 阅读全文
posted @ 2016-06-02 13:04 brady-wang 阅读(402) 评论(0) 推荐(0)
摘要: <script type="text/JavaScript">/* * 手机号码格式 * 只允许以13、15、18开头的号码 * 如:13012345678、15929224344、18201234676 */var regMobile=/^1[3,5,8]\d{9}$/; /* * 固定电话号码格 阅读全文
posted @ 2016-06-02 11:48 brady-wang 阅读(243) 评论(0) 推荐(0)
摘要: /** * 验证身份证号 * @param $vStr * @return bool */ function isCreditNo($vStr) { $vCity = array( '11','12','13','14','15','21','22', '23','31','32','33','34 阅读全文
posted @ 2016-06-02 11:46 brady-wang 阅读(400) 评论(0) 推荐(0)
摘要: 查一下你的MYSQL用户表里, 是否允许远程连接 1、授权 mysql>grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option; mysql>flush privileges; 2、修改/etc 阅读全文
posted @ 2016-06-02 09:08 brady-wang 阅读(376) 评论(0) 推荐(0)
摘要: Add XDebug to Ubuntu 14.04 Submitted by Wilbur on Tue, 06/17/2014 - 12:49pm It's pretty easy to add XDebug to Ubuntu for PHP and HTML5 Development. He 阅读全文
posted @ 2016-06-01 09:17 brady-wang 阅读(405) 评论(0) 推荐(0)
摘要: /** * 设计模式之单例模式 * $_instance必须声明为静态的私有变量 * 构造函数必须声明为私有,防止外部程序new类从而失去单例模式的意义 * getInstance()方法必须设置为公有的,必须调用此方法以返回实例的一个引用 * ::操作符只能访问静态变量和静态函数 * new对象都 阅读全文
posted @ 2016-05-31 14:52 brady-wang 阅读(195) 评论(0) 推荐(0)
摘要: <?php class ServiceMessage { private $errorCode = array( '1000' => "系统错误", '1001' => "用户错误", '1002' => "密码错误", ); CONST SYSTEM_CODE = '1000'; public f 阅读全文
posted @ 2016-05-31 14:09 brady-wang 阅读(381) 评论(0) 推荐(0)
摘要: select id, uid, money, FROM_UNIXTIME(created) as created, type FROM ( #type=1是 cjw_finance_bonus查出的内容select id, uid,balance as money, '1' as type, cre 阅读全文
posted @ 2016-05-20 15:28 brady-wang 阅读(248) 评论(0) 推荐(0)
摘要: MongoDBPHP 扩展 本教程将向大家介绍如何在Linux、window、Mac平台上安装MongoDB扩展。 Linux上安装 MongoDB PHP扩展 在终端上安装 你可以在linux中执行以下命令来安装MongoDB 的 PHP 扩展驱动 $ sudo pecl install mong 阅读全文
posted @ 2016-05-17 17:09 brady-wang 阅读(273) 评论(0) 推荐(0)
摘要: PHP的CURL方法curl_setopt()函数案例介绍(抓取网页,POST数据) PHP的CURL方法curl_setopt()函数案例介绍(抓取网页,POST数据) 通过curl_setopt()函数可以方便快捷的抓取网页(采集很方便),curl_setopt 是php的一个扩展库 使用条件: 阅读全文
posted @ 2016-05-11 09:17 brady-wang 阅读(351) 评论(0) 推荐(0)
上一页 1 ··· 170 171 172 173 174 175 176 177 178 ··· 198 下一页