$uploaddir="./map/"; $typearr=array("rar","zip","w3m","w3x"); $findstr=array("/","\\"," ",""); //对名称进行过滤 $mapname=str_replace($findstr,'',($_POST['mapname'])); //取扩展名 function upfiletype($filename){ $arr=explode('.',$filename); $a=count($arr)-1; return $arr[$a]; } //字符串是不是纯数字 function isNo($str){ $intarr=array('1','2','3','4','5','6','7','8','9','0','.'); $a=str_replace($intarr,'',$str); return ($a=="")?1:0; } //////控制窗口大小/////// function html(){ echo
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