![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php程序猿的个人学习笔记
小鱼Gus
这个作者很懒,什么都没留下…
展开
-
php发送post请求
在使用采集的时候 需要发送post请求。有3种方法。 第一种方法:file_get_contents(); function request_by_other($remote_server,$post_string){ $context = array( 'http'=>array( ‘method’=>’POST’, ‘header’=>’Content-type: appl转载 2014-10-05 14:55:29 · 440 阅读 · 0 评论 -
php根据坐标计算距离
//获取2点之间的距离 function GetDistance($lat1, $lng1, $lat2, $lng2){ $radLat1 = $lat1 * (PI / 180); $radLat2 = $lat2 * (PI / 180); $a = $radLat1 - $radLat2; $b = ($lng1 *转载 2014-10-05 14:30:43 · 721 阅读 · 0 评论