Hi Dmitry,
In case you want a regular expression to check if it is a valid url you can try this...
$url = "yoururl";
if(empty($url) && !eregi("^http://[A-Za-z0-9\%\?\_\:\~\/\.-]+$,$url))
$errmsg="$url doesn't look like a valid URL\n";
I hope this helps.
Subodh Gupta
I have learned, Joy is not in things, it is in us.
You will ultimately be known by what you give and not what you get.
----- Original Message -----
From: "Dmitry" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 25, 2001 2:14 AM
Subject: [PHP] checking url
Hello all.
Can you tell me, how can I check url address?
Also I want to know error, which return.
Dmitry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]