摘要:
php 调用远程url的六种方法,需要的朋友可以参考下。示例代码1: 用file_get_contents 以get方式获取内容复制代码代码如下:<?php$url='http://www.baidu.com/';$html=file_get_contents($url);//print_r($http_response_header);ec($html);printhr();printarr($http_response_header);printhr();?>示例代码2: 用fopen打开url, 以get方式获取内容复制代码代码如下:<?$fp=fope 阅读全文
posted @ 2013-04-01 15:16
hasayaki
阅读(709)
评论(0)
推荐(0)
浙公网安备 33010602011771号