Quantcast
Channel: Php Snippets Archives - BinaryTides
Viewing all articles
Browse latest Browse all 20

Php : Get links on a page with DomDocument

$
0
0

Scraper scripts often need to extract all links on a given page. This can be done in a number of ways like regex, domdocument etc. Here is simple code snippet to do this using domdocument. /* Function to get all links on a certain url using the DomDocument */ function get_links($link) { //return array $ret... Read More »

The post Php : Get links on a page with DomDocument appeared first on BinaryTides.


Viewing all articles
Browse latest Browse all 20

Trending Articles