Re: PHP: Validating E-mail and Website Addresses
by David Mintz <mambomintz(at)yahoo.com>
|
Date: |
Wed, 6 Mar 2002 08:25:23 -0800 (PST) |
To: |
hwg-languages(at)hwg.org |
In-Reply-To: |
dnsdomain |
|
todo: View
Thread,
Original
|
|
I posed this question about validating URLs to a Perl
discussion list and someone suggested a quite
different strategy: nevermind regexps, try to fetch
the url. If it's accessible, obviously the url is
well-formed and the site is up; if not, the url is
either ill-formed or the site is inaccessible.
hth
David Mintz
Spanish Interpreter
US District Court, Southern District of New York
Web Design & Hosting http://www.dmintzweb.com/
Personal http://www.panix.com/~dmintz/
"You want me to pour the beer, Frank?
--- Jami Moore <jami(at)jamisniche.com> wrote:
> Morning all.
>
> I have recently been trying to learn PHP with Larry
> Ullman's PHP for
> the World Wide Web Book.
>
> In it, he gives code to validate a website address,
> replace it with a
> hyperlink, and then write it to a file using eregi()
> and eregi_replace
__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA