How can I get all links from a webpage? For example the HTML sources is: <a href="../page2.htm">Page 2</a> <img src="http://www.host.com/path/logo.png"> And I want to get: print_r($links) Array ( [Page 2] => ../page2.htm )
print_r($images) Array ( [0] => http://www.host.com/path/logo.png ) How to achieve? -------------------------------------------------- Comment: English is not my first language. Wudi <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php