![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
Fzqx_
行到水穷处,坐看云起时。
展开
-
Malformed UTF-8 characters, possibly incorrectly encoded
# json_last_error_msg() => Malformed UTF-8 characters, possibly incorrectly encoded# this code fixed error "Malformed UTF-8 characters, possibly incorrectly encoded" in php 7.2 or newer$encoded = json_encode($value, DEFINED('JSON_INVALID_UTF8_IGNORE')原创 2020-12-22 19:47:45 · 309 阅读 · 0 评论 -
stream_context_create函数 & file_get_contents 代理设置示例
// 设置代理$aContext = array( 'http' => array( 'proxy' => '10.188.111.40:2224', 'request_fulluri' => true, ));$cxContext = stream_context_create($aContext);$html = file_get_contents($...原创 2019-03-04 17:18:26 · 1029 阅读 · 0 评论 -
php5.2升级5.6语法以及问题汇总
类静态方法的调用规范化php5.2class类中public方法可直接用 类名::方法名() 调用php5.6 会报错Message: Non-static method unify_model::getMenu() should not be called statically, assuming $this from incompatible context一些函数执行失败...原创 2019-03-04 17:32:05 · 920 阅读 · 0 评论 -
php $HTTP_RAW_POST_DATA & Deprecated: Automatically populating $HTTP_RAW_POST_DATA...
今天项目测试php(5.6)报错:Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set ‘always_populate_raw_post_data’ to ‘-1’ in p...原创 2019-03-11 16:38:54 · 470 阅读 · 0 评论