Could somebody help me? I`m looking for script to count number of external links in site. I try google, but I didn`t find right solution. Thanx.
Easy enough to code, file_get_contents explode the hrefs and count how many elements are in the array would be my starting point
Here is a script how to do that: http://rubensargsyan.com/count-of-all-external-links-of-the-web-page/
In PHP you'd fetch the contents of the page (file_get_contents), grab all urls within href tags (preg_match), then loop through (foreach) all the urls, counting all the urls found (count) which do not equal the url of the page (!= operator) being fetched. Theirs probably other ways of doing this (such as with DOM), but this is possibly the most popular.