browse by tag: dom
sort by
Dynamic XML document construction with the PHP DOM
in PHP added by goodphptutorials, on 26/10/2007 advanced tutorials dom xml
When working with XML-based applications, developers often find themselves facing the requirement to generate XML-encoded data structures on the fly. Examples of this include an XML order template based on user input in a Web form, or an XML representation of a server request or client response based on run-time parameters.
comment save reportHow To Build A Link Scraper Using PHP
in PHP added by jlaing, on 12/8/2007 advanced tutorials curl dom scraping user-agent xpath
A basic tutorial on how to build a PHP script that scrapes links from any web page. The article goes over extracting content from a site using cURL, parsing the content with PHP's Dom functions, finding links using XPath queries, and storing the links in a MySQL database. Legal issues associated with scraping content is discussed at the end of the tutorial.
comment save report