Posted by Bill Karwin on 11/15/05 02:11
Krustov wrote:
> Any recommended methods I could use to check the url is valid before
> accepting it ? .
One thing you could do is resolve the domain name they type in.
Tools like dig or nslookup can do this.
Here's a PHP package (GPL license) that says it does this, but I haven't
used it:
http://www.hotscripts.com/Detailed/47915.html
No doubt there are other similar PHP functions available out there.
Regards,
Bill K.
[Back to original message]
|