If you are using file_get_contents you might want to check out PHP Simple HTML DOM Parser
If you are using file_get_contents you might want to check out PHP Simple HTML DOM Parser
PHP Simple HTML DOM Parser is a great tool to easily process HTML from remote sites. The HTML is returned so that it can be easily searched and iterated, this is great for scraping sites. I didn’t write the code, but you can download it here and find some simple documentation: http://simplehtmldom.sourceforge.net/ Usage is really simple, just include the file: find(‘title’) as $e) { echo…
View On WordPress



















