上传者: 38512781
|
上传时间: 2021-10-20 16:15:25
|
文件大小: 19KB
|
文件类型: -
函数代码
function is_valid_filename($name)
{
$parts = preg_split("/(\/|".preg_quote("\\").")/", $name);
if (preg_match("/[a-z]:/i", $parts[0])) {
unset($parts[0]);
}
foreach ($parts as $part)
{
print "part = '$part'";
if (preg_match("/[".preg_quote("^|?*<\":>", "/")."\a\b\c\e\