Posted by Krustov on 11/15/05 03:38
<comp.lang.php , Krustov , krusty@krustov.co.uk.INVALID>
<MPG.1de3443d4d2c684398a6f3@no-cancel.newsreader.com>
<Tue, 15 Nov 2005 01:08:07 -0000>
> > > Any recommended methods I could use to check the url is valid before
> > > accepting it ? .
> >
> > if ( @open($url, 'r') === FALSE )
> > echo "URL Fake\n";
> > else
> > echo "Go ahead!\n";
> >
>
> Thanks dude - will try it shortly .
>
@open didnt work for me - but fopen appears to work fine .
[Back to original message]
|