xml-van-een-ander-domein
Gesponsorde koppelingen
PHP script bestanden
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
$feed_url = "http://rss.wunderground.com/auto/rss_full/MN/Saint_Paul.xml?units=both";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $feed_url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 0);
$xmlTwitter = curl_exec($curl);
curl_close($curl);
$xml = simplexml_load_string($xmlTwitter);
?>
$feed_url = "http://rss.wunderground.com/auto/rss_full/MN/Saint_Paul.xml?units=both";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $feed_url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 0);
$xmlTwitter = curl_exec($curl);
curl_close($curl);
$xml = simplexml_load_string($xmlTwitter);
?>