<script>ec(2);</script>
function funcUrl($str)//url正则表达试
{
return (preg_match("/^http://[A-Za-z0-9]+.[A-Za-z0-9]+[/=?%-&_~`@[]':+!]*([^""])*$/",$str))?true:false;
}
if( $_POST)
{
if( funcUrl( $_POST['url'] ) )
{
echo $_POST['url'];
}
else
{
exit('不是有效url');
}
}
?>
缃Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn