PHP Validate website address – PHP May 6, 2011 Pramod T P Leave a comment <?php if (!preg_match("/^(http(s?)://|ftp://{1}) ((w+.){1,})w{2,}$/i", $websitrAddres)) $errorList[]="Invalid Website address. ' "; ?>