Re: validate URL

From: Date: Thu, 04 Dec 2003 17:32:08 +0000
Subject: Re: validate URL
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24147@lists.php.net to get a copy of this message
On Thu Dec 04, 2003 at 04:3505PM +0100, Pierre-Alain Joye wrote: > On Thu, 4 Dec 2003 09:29:29 -0600 > Paul M Jones <pmjones@ciaweb.net> wrote: > > > On Dec 4, 2003, at 9:22 AM, Arnaud Limbourg wrote: > > > > > Nope. > > > > > > it means valid values are http, https, ftp > > > > > > the ? is for 0 or 1 which matches http or https. > > > > Which means that mailto:, news://, and gopher:// are not > > valid? > > Those are valid URI (afair :). This function should valid widely > called urls. But it should take care of ftps? as well ;) IMO the method shouldn't be too strict about the protocol. Accepting everything that only contains characters and nothing else sounds like a good idea to me. -- - Martin Martin Jansen http://martinjansen.com/

« previous php.pear.dev (#24147) next »