Re: [PHP] Re: link counting

2007-04-07 Thread Sebe
Tijnema ! wrote: On 4/7/07, itoctopus <[EMAIL PROTECTED]> wrote: Use the function is_url (note that I haven't written it) instead to check if the link is a URL. Not only your method may count some links twice, but it will count wrong URLs also. External is not a URL that will take someone ext

Re: [PHP] Re: link counting

2007-04-07 Thread Tijnema !
On 4/7/07, itoctopus <[EMAIL PROTECTED]> wrote: Use the function is_url (note that I haven't written it) instead to check if the link is a URL. Not only your method may count some links twice, but it will count wrong URLs also. External is not a URL that will take someone externally. Below is th

[PHP] Re: link counting

2007-04-07 Thread itoctopus
Use the function is_url (note that I haven't written it) instead to check if the link is a URL. Not only your method may count some links twice, but it will count wrong URLs also. External is not a URL that will take someone externally. Below is the function is_url function is_url($url) { return p

[PHP] Re: link counting

2007-04-06 Thread Jonesy
On Fri, 06 Apr 2007 09:01:20 -0400, Sebe wrote: > i thought of an idea of counting the number of links to reduce comment spam. > > unfortunately my methods is not reliable, i haven't tested it yet > though.. anyone have maybe a better solution using some regexp? > > $links = array('http://', 'http