[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. a href='www.externaldomainnamehere.com'External/a is not a URL that will take someone externally. Below is the

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. a href='www.externaldomainnamehere.com'External/a is not a URL that

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. a href='www.externaldomainnamehere.com'External/a

[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://',