I know it is possible to get information (text) from another page.
For example, on the page at http://www.page.com/ is a div
named news
.
How can I get the text from this div?
I know it is possible to get information (text) from another page.
For example, on the page at http://www.page.com/ is a div
named news
.
How can I get the text from this div?
Yes, that's what HTML Simple DOM is for amongst other options.
Example:
$html = file_get_html('http://www.page.com/');
$mydiv = $html->find('div[id=news]', 0)->plaintext;