note 91066 deleted from function.parse-url by danbrown
| From: | danbrown@php.net | Date: | Mon, 25 May 2009 22:18:11 +0000 |
| Subject: | note 91066 deleted from function.parse-url by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155999@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
As a reply to theoriginalmarksimpson at gmail dot com
It is even easier to check for a valid url like this:
<?php
$ftp = parse_url("ftp://253.124.125.547");
if(!isset($ftp['ip']) || ip2long($ftp['ip']) === FALSE)
{
echo "false!";
}
?>