Forum Moderators: coopster
How can I do this using php? I'm assuming I need write a small script that will get the file on their server, save it on my server (and change the extension to txt). Then I'm going to run this script via a cronjob.
Can anyone point me in the right direction to get started on this? I'm not sure which php command I need to use to grab the feed from the other server.
The url is like http://www.example.com/feed/data_feed.asp"
and i want to save it on my server as data_feed.txt. Changing the extension is no prob - I can do this manually (go to that URL, save the feed as txt and upload to my server). However the feed is updated every 15 minutes so I want to automate this using a cronjob. I'm assuming I need to write a small php script that pulls that feed and saves it to my server, and use the cronjob to execute the script.
Ya know? :)
[edited by: jatar_k at 5:44 pm (utc) on Mar. 19, 2007]
[edit reason] please use example.com [/edit]
Read about it [gnu.org]