gevo12321 Posted September 15, 2011 Share Posted September 15, 2011 Hi, So I need to download a file from the internet. The file changes every 10 seconds, and I would like to download the file every time it changes (every 10 seconds). Fortunately the file is always at the same address. The problem is, in order to download, you have to be logged into the site which uses asp not php . I was wondering what your recommendations would be to getting the files. Should I use some kind of macro program? if so, which would you recommend? or is there a way I can write a program to do it? what would be your solution to the problem? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/247232-downloading-file-from-website/ Share on other sites More sharing options...
requinix Posted September 15, 2011 Share Posted September 15, 2011 What kind of file is it? Quote Link to comment https://forums.phpfreaks.com/topic/247232-downloading-file-from-website/#findComment-1269727 Share on other sites More sharing options...
gevo12321 Posted September 16, 2011 Author Share Posted September 16, 2011 Its an html file, I just need the data in the file which is organized in a table. Quote Link to comment https://forums.phpfreaks.com/topic/247232-downloading-file-from-website/#findComment-1269735 Share on other sites More sharing options...
requinix Posted September 16, 2011 Share Posted September 16, 2011 If you're doing this every ten seconds, which I hope is sanctioned by the website's owner(s), then the cookies that the site gives you when you manually log in can be given to PHP to send back. Their site won't know the difference... unless it's smarter than usual, but that can still be worked around. Quote Link to comment https://forums.phpfreaks.com/topic/247232-downloading-file-from-website/#findComment-1269745 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.