using httprequest to store html page into mysql db

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
rich168
Forum Newbie
Posts: 3
Joined: Fri Feb 13, 2009 8:41 am

using httprequest to store html page into mysql db

Post by rich168 »

Dear All,

I am very new to php programming and mysql. I have searched through the web but cant find the right answer.

Can anyone tell me how to read html page from website and store in database?

I believe using httprequest should be the answer but how can I read and store it in db?

Thanks in advance for any help.

Cheers,

Richard
Reviresco
Forum Contributor
Posts: 172
Joined: Tue Feb 19, 2008 4:18 pm
Location: Milwaukee

Re: using httprequest to store html page into mysql db

Post by Reviresco »

Best way to get the website is using cURL:

http://us2.php.net/manual/en/curl.examples-basic.php

As for putting it in the database, there are too many steps to detail in a forum post. Check out w3schools:

http://www.w3schools.com/sql/default.asp
rich168
Forum Newbie
Posts: 3
Joined: Fri Feb 13, 2009 8:41 am

Re: using httprequest to store html page into mysql db

Post by rich168 »

thanks Reviresco.

the information is useful and enough for me to start off
Post Reply