Skip to main content
Participant
May 16, 2007
Question

local xml file for spry usage

  • May 16, 2007
  • 3 replies
  • 297 views
Hi There,
After my last post about this subject I have been browsing the web for an awnser which would enable me to get this done, but without any success.

What I'd like is a method (javascript or php would be fine) to get a remote xml feed from flickr to be saved locally for quick access by spry.

I'm not a real coder, so it is hard for me to find out. Please can anyone help?

Kind regards,

Benjamin
This topic has been closed for replies.

3 replies

Inspiring
May 16, 2007
specht1 wrote:
> I've read the article, but somehow I do not know what you mean...

The cURL script in that article acts as a proxy for a remote XML feed.

If your hosting company hasn't disabled allow_url_fopen, you can create
an even simpler script:

<?php
$url = ' http://www.example.com/my.xml';
$remote = file_get_contents($url);
header('Content-type:text/xml');
echo $remote;
?>

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Participant
May 16, 2007
David,
I've read the article, but somehow I do not know what you mean...

Kind regards,
Benjamin
Inspiring
May 16, 2007
specht1 wrote:
> What I'd like is a method (javascript or php would be fine) to get a remote
> xml feed from flickr to be saved locally for quick access by spry.

http://www.xml.com/pub/a/2005/11/09/fixing-ajax-xmlhttprequest-considered-harmful.html

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/