Page 1 of 1

using httprequest to store html page into mysql db

Posted: Fri Feb 13, 2009 8:51 am
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

Re: using httprequest to store html page into mysql db

Posted: Fri Feb 13, 2009 9:15 am
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

Re: using httprequest to store html page into mysql db

Posted: Fri Feb 13, 2009 5:58 pm
by rich168
thanks Reviresco.

the information is useful and enough for me to start off