Directory name legality detection
//Directory name legality detection
function isen($str){
$ret="";
for( $i=0;$i $p=ord(substr($str,$i,1));
if(($p<48 & $p!=45 & $p!=46) || ( $p>57 & $p<65) || ($p>90 & $p<97 & $p!=95) || $p>122){
nerror("Does not meet specification!");
}
$ret.=chr($p);
}
return $ret;
}
?>