Added by thebman220 on July-2-2008, 10:39 pm
function verify($file) {
if (preg_match('/PRN|CON|AUX|CLOCK$|NUL|COMd|LPTd/i',$file)) {
return false;
}
$parts=explode("\\",$file);
if (preg_match('/[A-Za-z]:/',$parts[0])) {
$parts[0]=null;
}
foreach ($parts as $part) {
if (preg_match('|[^|?*<":>abefnrt]|',$part)) {
return false;
}
}
return true;
}
Added by thebman220 on October-2-2008, 7:29 pm
Added by thebman220 on September-28-2008, 5:24 pm
Added by thebman220 on July-9-2008, 11:31 pm
Added by thebman220 on July-5-2008, 12:50 am
Added by thebman220 on July-5-2008, 12:03 am