[FX.php List] Validating a URL

Gjermund Gusland Thorsen ggt667 at gmail.com
Tue Jan 23 11:21:48 MST 2007


You have to actually fopen() the URL and parse the result.

ggt667

On 1/22/07, Edward L. Ford <elford at cs.bu.edu> wrote:
> 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