PHP Tips && Tricks
From D3xt3r01.tk
Windows Safe directory name
function safename($d){
$d = preg_replace('|[\/\?<>\\\\:*\|"\(\)]|i', ' ', $d);
$d = preg_replace('/\s+/', ' ', $d);
return trim($d);
}
function safename($d){
$d = preg_replace('|[\/\?<>\\\\:*\|"\(\)]|i', ' ', $d);
$d = preg_replace('/\s+/', ' ', $d);
return trim($d);
}