[FX.php List] Validating a URL

David Ness dness at bondedbuilders.com
Tue Jan 23 11:23:44 MST 2007


You'll find some useful validation routines, including URL validation,
here:

http://www.thewebmasters.net/php/Validator.phtml



--
David Ness,
Database Systems Programmer
 
Bonded Builders Warranty Group
1500 Kings Highway
Port Charlotte, FL 33980
800.749.0381 x3123 (National Toll Free)
941.255.3274 x3123 (Local)
 

-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Edward L.
Ford
Sent: Sunday, January 21, 2007 11:24 PM
To: FX.php Discussion List
Subject: [FX.php List] Validating a URL

Hi,
I have a PHP submission form to FileMaker that does some pretty rigorous
data validation to ensure good data.  I'd like to extend this a little
further to validating that a URL actually exists.

Essentially, what I want to disallow is a URL that leads to a 404 error
page, or if it returns 200 (OK).  How might I validate this in PHP?  All
suggestions are welcomed.

--Ed
_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list


More information about the FX.php_List mailing list