Posted by Janwillem Borleffs on 05/12/07 13:06
Peter Parker wrote:
> I understand for php5 there is function filter_var as in
> filter_var($var, FILTER_SANITIZE_URL);Is there similar function in
> php4.3? Thank you
>
The function implements RFC 1738 validation rules for the
FILTER_SANITIZE_URL flag:
http://www.faqs.org/rfcs/rfc1738.html
There isn't a real equivalent in PHP < 5.2, but you might be able to do some
basic validation using parse_url:
http://www.php.net/parse_url
HTH;
JW
Navigation:
[Reply to this message]
|