上一页 1 ··· 5 6 7 8 9
摘要: PHP的json_encode中文被转码的问题 在php5.2中做json_encode的时候。中文会被unicode编码, php5.3加入了options参数, 5.4以后才加入JSON_UNESCAPED_UNICODE,这个参数,不需要做escape和unicode处理。 所以在5.4之前都 阅读全文
posted @ 2017-03-17 10:01 杨广伟 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 传递自定义参数:if (!isset($_GET['code'])) { // 触发微信返回code $url = $jsApi->createOauthUrlForCode(WxPayConf_pub::JS_API_CALL_URL); $state = json_encode(array( " 阅读全文
posted @ 2017-03-17 10:00 杨广伟 阅读(2835) 评论(0) 推荐(0) 编辑
摘要: location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; break; } } location ~ \.php { fastcgi_pass 127.0.0.1:9000; //这里不用担心你的服务器 阅读全文
posted @ 2017-03-17 09:59 杨广伟 阅读(135) 评论(0) 推荐(0) 编辑
摘要: /** * laravel 简单的上传图片* @param Request $request* @return View*/public function upload(Request $request){if ($request->isMethod('POST')){$file = $reques 阅读全文
posted @ 2017-03-17 09:58 杨广伟 阅读(173) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9
点击右上角即可分享
微信分享提示