Lines Matching refs:file
323 * @param string $file Path to the file to get the type of
329 function autoDetect($file, $params = false) argument
333 $type = mime_content_type($file);
335 $type = MIME_Type::_fileAutoDetect($file);
363 * @param string $file Path to the file to get the type of
368 function _fileAutoDetect($file) argument
371 if (!file_exists($file)) {
372 return PEAR::raiseError("File \"$file\" doesn't exist");
375 if (!is_readable($file)) {
376 return PEAR::raiseError("File \"$file\" is not readable");
389 $cmd->pushCommand($fileCmd, "-bi '{$file}'");