函数代码
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\
1