Jump to content

cURL XML to XML


marcdh

Recommended Posts

Hey.

I just want to use cURL to take an RSS feed and save it locally as XML.  It's just to get around the Flex/Flash cross domain issue.

Something like this except loading news.xml and saving as news.xml locally:

 

<?php

$ch = curl_init("http://www.dpreview.com/feeds/news");

$fp = fopen("news.html", "w");

 

curl_setopt($ch, CURLOPT_FILE, $fp);

curl_setopt($ch, CURLOPT_HEADER, 0);

curl_exec($ch);

curl_close($ch);

fclose($fp);

?>

 

Any help to a php newb much appreciated  :D

Link to comment
https://forums.phpfreaks.com/topic/50122-curl-xml-to-xml/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.