$part ) { $parts[ $key ] = substr($string, $pos, strlen($part)); $pos += strlen($part) + strlen($find); } return( join( $replace, $parts ) ); } } if (!function_exists('mime_content_type')) { function mime_content_type($f) { return trim(exec('file -bi ' . escapeshellarg ($f ))); } } ?>