marcdh Posted May 5, 2007 Share Posted May 5, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/50122-curl-xml-to-xml/ Share on other sites More sharing options...
MadTechie Posted May 5, 2007 Share Posted May 5, 2007 erm.. use fwrite Quote Link to comment https://forums.phpfreaks.com/topic/50122-curl-xml-to-xml/#findComment-246094 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.