PHP FILTER_VALIDATE_URL Maximum Length? -
i have code validate whether url inputted valid...
if(filter_var($param1, filter_validate_url) === false){ echo "invalidurl"; exit(); }
but when testing long-yet-valid url says it's invalid...
anyone have ideas why? can't find in filter_validate_url says should consider url of length invalid, deleting characters deemed valid. thoughts!
sorry all, found after little more research...
"according rfc 1034, each part of domain name label cannot exceed 63 characters."
so wasn't valid url after - done php!
Comments
Post a Comment