共 28 篇文章 |
|
public function getAutoloaderConfig(){ return array( ''Zend\Loader\StandardAutoloader'' => array( ''namespaces'' => array( ''ZendOAuth'' => __DIR__ .}ZF2加载非PSR-0标准库。不过由于第三方库质量参差不齐,并不一定所有的库都遵循PSR-0标准,ZF2也提供了非PSR-0标准库的... 阅498 转3 评0 公众公开 15-07-03 18:04 |
微信调用接口,防止Access_token过期的方法大家都知道,微信中调用订阅用户接口中需要Access_token,而根据微信官方文档中说明: 阅45000 转81 评0 公众公开 14-06-23 08:51 |
Zend_Db_TableZend_Db_Table简介。php// 建立一个 adapterrequire_once ''Zend/Db.php'';$params = array ( ''host'' => ''127.0.0.1'', ''username'' => ''malory'', ''password'' => ''******'', ''dbna... 阅76 转0 评0 公众公开 14-04-02 15:10 |
if ((int)$result_session[0][''num''] >= 1) { $sql = "delete from ".$this->_db_config->database_prefix->table_prefix."session where sessionid = ''".$result_session[0][''sessionid'']."'' and userid = ".(int)$result[0][... 阅1333 转4 评0 公众公开 14-04-02 15:10 |
修改php.ini设置编辑 D:\xampp\php\php.ini.打开短标签支持,方便ZF2模板编写:short_open_tag = On加载php多语言插件(Internationalization Functions)支持,这是ZF2的I18N必须的extension=php_intl.dll开启Openssl支持,Oauth等一些组件必须extension=php_openssl.dll开启rewrite: 打开x:\wamp\bin\apache\Apache2.3.14\conf, 将# LoadModul... 阅4553 转38 评0 公众公开 13-08-29 10:24 |
阅116 转0 评0 公众公开 13-08-29 10:23 |
PHP正则表达式 /i, /is, /s, /isU等。x 模式中的空白字符除了被转义的或在字符类中的以外完全被忽略,在未转义的字符类之外的 # 以及下一个换行符之间的所有字符,包括两 头,也都被忽略。即:贪婪模式,最 大限度匹配 如:/a[\w]+?e/U匹配abceadeddd中的abceade而不是abce,如果不加U修正,则匹配abce u (PCRE_UTF8) 此修正符启用了一个 PCRE 中与... 阅2758 转4 评0 公众公开 13-08-22 11:38 |
function mobile_device_detect($iphone=true,$ipad=true,$android=true,$opera=true,$blackberry=true,$palm=true,$windows=true,$mobileredirect=false,$desktopredirect=false){// if redirect (either the value of the mobile or desktop redirect depending on the value of $mobile_browser) is true redirect else we return the statu... 阅2060 转5 评0 公众公开 13-07-15 15:48 |