摘要: abort(): 抛出HTTP异常 /** * 抛出HTTP异常 * @param integer|Response $code 状态码 或者 Response对象实例 * @param string $message 错误信息 * @param array $header 参数 */ abort( 阅读全文
posted @ 2020-08-05 16:31 php-newbie-xh 阅读(4025) 评论(0) 推荐(0) 编辑
摘要: 1、下载微信jssdk demo : http://demo.open.weixin.qq.com/jssdk/sample.zip 备注:链接中包含php、java、nodejs以及python的示例代码供第三方参考,第三方切记要对获取的accesstoken以及jsapi_ticket进行缓存以 阅读全文
posted @ 2018-04-02 15:35 php-newbie-xh 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 在入口文件同级的 .htaccess 文件中的RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]在默认情况下可能会导致访问页面报:No input file specified.将上面一句修改为:RewriteRule ^(.*)$ index.php [L,E=P 阅读全文
posted @ 2017-12-04 17:36 php-newbie-xh 阅读(2055) 评论(0) 推荐(0) 编辑
摘要: mysql模糊查询like的用法 查询user表中姓名中有“王”字的: select * from user where name like '%王%' mysql模糊查询not like的用法 查询user表中姓名中没有“王”字的: select * from user where name no 阅读全文
posted @ 2017-11-01 10:34 php-newbie-xh 阅读(83864) 评论(0) 推荐(5) 编辑
摘要: 声明:是已认证的服务号 这个问题已解决!! 前置说明 网页授权获取用户基本信息:两种 scope 域 https://open.weixin.qq.com/connect/oauth2/authorize?appid={0}&redirect_uri={1}&response_type=code&s 阅读全文
posted @ 2017-10-31 14:23 php-newbie-xh 阅读(3693) 评论(0) 推荐(0) 编辑
摘要: 1、将字符串分割成数组:$array=explode(separator,$string): separator:分隔符, $string:分割的字符串; 2、将数组组合成字符串:$string=implode(glue,$array): glue:胶合符, $array:数组; 3、统计数组的长度 阅读全文
posted @ 2017-10-30 14:36 php-newbie-xh 阅读(521) 评论(0) 推荐(0) 编辑