摘要:
PHP的json_encode中文被转码的问题 在php5.2中做json_encode的时候。中文会被unicode编码, php5.3加入了options参数, 5.4以后才加入JSON_UNESCAPED_UNICODE,这个参数,不需要做escape和unicode处理。 所以在5.4之前都 阅读全文
摘要:
传递自定义参数:if (!isset($_GET['code'])) { // 触发微信返回code $url = $jsApi->createOauthUrlForCode(WxPayConf_pub::JS_API_CALL_URL); $state = json_encode(array( " 阅读全文
摘要:
location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; break; } } location ~ \.php { fastcgi_pass 127.0.0.1:9000; //这里不用担心你的服务器 阅读全文
摘要:
/** * laravel 简单的上传图片* @param Request $request* @return View*/public function upload(Request $request){if ($request->isMethod('POST')){$file = $reques 阅读全文