PHP Sample - HTML Page Fetcher and Parser
Back in 2008, I wrote a PHP class that fetched an arbitary URL, parsed it, and coverted it into an PHP object with different attributes for the different elements of the page. I recently updated it and sent it along to a company that wanted a programming example to show I could code in PHP. I thought someone may well find a use for it - I’ve used the class in several different web scraping applications, and I found it handy. From the readme: ...