
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 · 387 阅读 · 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 · 1197 阅读 · 0 评论 -
php5.2升级5.6语法以及问题汇总
类静态方法的调用规范化 php5.2 class类中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 · 999 阅读 · 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 · 580 阅读 · 0 评论