![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
Samuel_esssy
码农
展开
-
php利用curl发送 post get del put patch 请求
转载 出处:https://www.cnblogs.com/haha520/p/6564701.html因为需要在php开发中对接其它接口需要用php curl去对接其它接口 我把他们封装成函数 希望能对大家有所帮助这里面是封装好的 会自动把data进行转成json格式 同时解码成php数组输出 1 function geturl($url){ 2转载 2017-11-23 14:54:59 · 1663 阅读 · 0 评论 -
PHP去掉指定目录BOM头 用于检测项目编码格式
转载豆瓣 https://www.douban.com/note/332229277/header('content-Type: text/html; charset=utf-8');if(isset($_GET['dir'])){ //设置文件目录,如果没有设置,则自动设置为当前文件所在目录 $basedir=$_GET['dir'];}else{转载 2018-02-01 11:49:02 · 351 阅读 · 1 评论