* validateUrlSyntax('http://george@www.cnn.com/#top') * * validateUrlSyntax('https://games.yahoo.com:8080/board/chess.htm?move=true') * * validateUrlSyntax('http://www.hotmail.com/', 's+u-I-p-q-r-') * * validateUrlSyntax('/directory/file.php#top', 's-u-a-p-f+') * * * if (validateUrlSyntax('http://www.canowhoopass.com/', 'u-')) * { * echo 'URL SYNTAX IS VERIFIED'; * } else { * echo 'URL SYNTAX IS ILLEGAL'; * } *
'; print_r($aOptions); echo '
' . htmlentities(wordwrap($regexp,70,"\n",1)) . '
* validateEmailSyntax( url_to_check[, options]) *
* validateEmailSyntax('george@fakemail.com') * validateEmailSyntax('mailto:george@fakemail.com', 's+') * validateEmailSyntax('george@fakemail.com?subject=Hi%20George', 'q?') * validateEmailSyntax('george@212.198.33.12', 'I?') *
' . $newoptions . '
* validateFtpSyntax( url_to_check[, options]) *
* validateFtpSyntax('ftp://netscape.com') * validateFtpSyntax('moz:iesucks@netscape.com') * validateFtpSyntax('ftp://netscape.com:2121/browsers/ns7/', 'u-') *