Page 1 of 1

Reading websites contents source

Posted: Tue Sep 29, 2009 10:48 am
by bogha
Hi,

i just want to know how do you guys use php to read the contents of a page
i mean
assume we have page news.php

how to use php to access this page on the server, execute it, and then read the html tags of the result page and get the required information.

do you have any technique.

thank you.

Re: Reading websites contents source

Posted: Tue Sep 29, 2009 2:20 pm
by requinix
For starters, file_get_contents. After that it depends on what you're getting.