6 篇
建站知识总结与分享
搜索“curl”
<b>Deprecated</b>: Array and string offset access syntax with curly braces is deprecated in
taotaoit 0 0
252 0 2023-11-01 PHP
Uncaught transport.js/parseResult() error: can't parse to JSON. <br /> <b>Deprecated</b>:  Array and string offset access syntax w...
Array and string offset access syntax with curly braces is deprecated原因
web 0 0
886 0 2022-05-23 PHP
Array and string offset access syntax with curly braces is deprecated PHP7.4不再支持使用大括号访问数组以及字符串的偏移_PHP代码 php7.4不支持数组{}写法,统一为数组[] 解决办法: seq=(ord(value{0}) % $rule...
curl通过get,post方式通过接口获取数据
taotaoit 0 0
878 0 2022-04-01 PHP
/** * 以get方式提交请求 * @param $url * @return bool|mixed */ function ZHTHttpGet($url){ $curl = curl_init(); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_s...
PHP curl 获取响应的状态码的方法
web 0 0
1397 0 2022-02-15 PHP
PHP curl 获取响应的状态码的方法 PHP curl可以从服务器端模拟一个http请求,例如抓取网页、模拟登陆等。根据选项设置,可以在curl_exec的返回结果中获取到响应头和body,但这没有响应的状态吗。想要获取状态码,需要在执行curl_exec后再通过curl_getinfo来获取。例如: $ch = cu...
解决phpstudy的证书报错的问题cURL error 60: SSL certificate problem: unable to get local issuer certifica
web 0 1
2048 0 2021-11-27 PHP
使用了phpstudy作为安装环境后,用阿里云短信接口的时候,报如下错误 cURL error 60: SSL certificate problem: unable to get local issuer certifica php5.6以上的版本会出现这种问题 解决办法: 访问https://curl.haxx.se/...
php爬取图片并保存到本地的代码
web 0 0
2124 0 2019-05-09 PHP
代码: <?php $url = 'http://desk.zol.com.cn/bizhi/7386_91671_2.html'; $headers = [ 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KH...
关于本站

“最难不过坚持”

本人承接扒站仿站,php网站维护,病毒查杀,网站编辑,网站改版,html制作

有需要网站维护,改版,病毒查杀,网站编辑,网站备案,html制作等相关的工作可以联系我。
本人有多年相关工作经验,也可提供免费咨询,交个朋友。
有需要探讨问题的朋友,也可以加我微信,共同探讨!
微信:15011482830 QQ:408917339

6282668 2594 39
最新评论
https://jueru.net/
评 留言
:weixiao:
评 留言
:shuijiao: :weiqu: :zhenbang: :leng:
评 留言
:yiwen: :yiwen: :yiwen: :yiwen:
评 EasySass: could not generate CSS file. See Output panel for details.
这个业务逻辑多少都有点奇怪了,阅读浏览次数增值在新闻详情页的控制器方法里setInc,这怎么还写进模型事件里了。如果非要用onAfterRead也可以,把新闻文章的内容单独分出来一个news_content表,然后把它和news做关联,然后给news_content表的onAfterRead事件做增值处理,这样点进新闻页内查询到文章内容时才会触发它。
评 TP6模型事件-查询后onAfterRead不好用
文章标签更多
ThinkPHP (254)
Mysql (58)
DedeCms (33)
jQuery (67)
证件照 (1)
setInc (4)
setDec (4)
onclick (5)