![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
有何不可0121
这个作者很懒,什么都没留下…
展开
-
SSL certificate problem: unable to get local issuer certificate
1) Download the latest cacert.pem from https://curl.haxx.se/ca/cacert.pem2) Add the following line to php.ini (if this is shared hosting and you don't have access to php.ini then you could add thi转载 2017-11-23 09:39:23 · 314 阅读 · 0 评论 -
PHP 解析JSON数组
$arr = '[{"fileurl":"http://www.baidu.com","filename":"s1"},{"fileurl":"http://www.baidu.com","filename":"s2"}]'; $json = json_decode($arr,TRUE); $count_json = count($json);原创 2017-12-14 09:46:48 · 3978 阅读 · 0 评论 -
http_build_query拼接地址参数
(PHP 5)http_build_query -- 生成 url-encoded 之后的请求字符串描述string http_build_query ( array formdata [, string numeric_prefix] )使用给出的关联(或下标)数组生成一个 url-encoded 请求字符串。参数 formdata 可以是数组或包含属性的对象。一个 fo转载 2018-01-03 14:21:51 · 861 阅读 · 0 评论 -
PHP使用CURL详解
CURL是一个非常强大的开源库,支持很多协议,包括HTTP、FTP、TELNET等,我们使用它来发送HTTP请求。它给我 们带来的好处是可以通过灵活的选项设置不同的HTTP协议参数,并且支持HTTPS。CURL可以根据URL前缀是“HTTP” 还是“HTTPS”自动选择是否加密发送内容。使用CURL发送请求的基本流程使用CURL的PHP扩展完成一个HTTP请求的发送一般有以下几转载 2018-01-03 14:27:53 · 219 阅读 · 0 评论