Page 1 of 1

Login to other website with PHP and Fetch DATA

Posted: Fri Nov 14, 2008 7:34 am
by ffdndm
Hi,
I have user name and password for a website where lots of information is available. I need to fetch this data and store it on my server. There are lots of pages I need to traverse and fetch the data, so I am thinking of writing a PHP script. The script will log in to that website with the login information I have and traverse various pages on that website. The script will also be able to Parse the HTML content.
How do I do this????
Please help.......


Thanks
Dave

Re: Login to other website with PHP and Fetch DATA

Posted: Fri Nov 14, 2008 12:51 pm
by Hannes2k
Hi,
with fsockopen().
You have just to send the right http headers. But it's not so easy as its sounds.