Friday, January 6, 2012

Extract All Links From A HTML Page/File Using PHP - cURL !

Lets Create The Link Extractor Function first:

To use it just read a web page or file into a string, and pass that string to the function.
The following example reads a web page using the PHP - cURL functions and then passes the result into the function to retrieve the links.


Lets Continue:



Download The Full Script Here: LinkExtractor.php


That's all.. 
Hope you enjoyed the tutorial.. 
please leave your comments.

0 comments:

Post a Comment