Login to other website with PHP and Fetch DATA

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ffdndm
Forum Newbie
Posts: 1
Joined: Fri Nov 14, 2008 7:23 am

Login to other website with PHP and Fetch DATA

Post 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
Hannes2k
Forum Contributor
Posts: 102
Joined: Fri Oct 24, 2008 12:22 pm

Re: Login to other website with PHP and Fetch DATA

Post by Hannes2k »

Hi,
with fsockopen().
You have just to send the right http headers. But it's not so easy as its sounds.
Post Reply