Home > Backend Development > PHP Tutorial > 利用中国天气预报接口实现简单天气预报_php实例

利用中国天气预报接口实现简单天气预报_php实例

WBOY
Release: 2016-05-17 08:50:43
Original
1124 people have browsed it

复制代码 代码如下:

header("content-type:text/html;charset=utf-8");
$weather = file_get_contents("http://www.weather.com.cn/data/sk/101280601.html");
echo $weather;
?>

复制代码 代码如下:





澶╂皵棰勬姤



杩欓噷鏄
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template