Re: Checking a URL string.

From: Date: Fri, 12 Dec 2003 18:35:54 +0000
Subject: Re: Checking a URL string.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-172591@lists.php.net to get a copy of this message
try the PEAR Validate class you can do Validate::url($websiteUrl); by the way, preg is quicker than ereg Mike Philip J. Newman wrote:
I would like to check if i have a correct url enterend <?php eregi("^http://[([0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$", $websiteUrl); ?> --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. info@PhilipNZ.com


« previous php.general (#172591) next »