Posted by Krustov on 11/15/05 03:08
<comp.lang.php , Bill Karwin , bill@karwin.com>
<dlb92g0t96@enews3.newsguy.com>
<Mon, 14 Nov 2005 16:11:00 -0800>
> > 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.
>
Downloaded and sounds quite useful .
[Back to original message]
|