Mohammad Mohammad - 3 months ago 9
PHP Question

How to get div values from another website in PHP

How to get div values from another website in PHP? Is there a way?

Answer

This is really simple its called WEB SCRAPING you can do this using regex regular expression and there is also a library called simple html dom using this you can do what you wanted pretty easily :)

Here is the reference manual Reference

This
$ret = $html->find('div[class=classname]'); can get what you want! or
$ret = $html->find('.div'sclassname')

Comments