You are here: Re: How to check a url is valid « PHP Programming Language « IT news, forums, messages
Re: How to check a url is valid

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 .

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация