want to join us? register, it's easy | help

browse by tag: user-agent

sort by

newest, oldest, most popular

category icon

How 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
category icon

Detecting The User's Browser

in PHP added by goodphptutorials, on 22/3/2007 advanced tutorials browser server user-agent

In this tutorial, you'll learn how to detect the Internet browser the user is using. This is useful if you want to switch stylesheets based on the browser

comment save report