Re: note 9727 added to URL Functions

From: Date: Tue, 21 Nov 2000 11:59:03 +0000
Subject: Re: note 9727 added to URL Functions
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-7947@lists.php.net to get a copy of this message
mike@indelible.org.uk wrote: > > An is_url() function would be useful, something that validates that an URL is of the form > method://subdomain.domain.ext/directory/subdirectory/file.ext?query1=data1&query2=data2 > > http://www.php.net/manual/ref.url.php it would be useful, but it can't be done as different URL types have different styles, see for example 'mailto:hartmut@six.de' or 'file:/home/hartmut' is_url() would have to know about every possible method: and its encoding stile for what lies behind ':' so it wouldn't be 'is_url()' but only 'looks_like_an_url()' ... :( -- Hartmut Holzgraefe hartmut@six.de http://www.six.de +49-711-99091-77

« previous php.notes (#7947) next »