-
Compteur de contenus
4 -
Inscrit(e) le
-
Dernière visite
Messages postés par cmbelgique
-
-
Et je peux faire comment pour corriger ce problème ?
-
Voici le code avec en rouge la ligne 446 :
public static function mime_content_type($filename)
{
$mime_types = array(
'txt' => 'text/plain',
'htm' => 'text/html',
'html' => 'text/html',
'php' => 'text/html',
'css' => 'text/css',
'js' => 'application/javascript',
'json' => 'application/json',
'xml' => 'application/xml',
'swf' => 'application/x-shockwave-flash',
'flv' => 'video/x-flv',
// images
'png' => 'image/png',
'jpe' => 'image/jpeg',
'jpeg' => 'image/jpeg',
'jpg' => 'image/jpeg',
'gif' => 'image/gif',
'bmp' => 'image/bmp',
'ico' => 'image/vnd.microsoft.icon',
'tiff' => 'image/tiff',
'tif' => 'image/tiff',
'svg' => 'image/svg+xml',
'svgz' => 'image/svg+xml',
// archives
'zip' => 'application/zip',
'rar' => 'application/x-rar-compressed',
'exe' => 'application/x-msdownload',
'msi' => 'application/x-msdownload',
'cab' => 'application/vnd.ms-cab-compressed',
// audio/video
'mp3' => 'audio/mpeg',
'qt' => 'video/quicktime',
'mov' => 'video/quicktime',
// adobe
'pdf' => 'application/pdf',
'psd' => 'image/vnd.adobe.photoshop',
'ai' => 'application/postscript',
'eps' => 'application/postscript',
'ps' => 'application/postscript',
// ms office
'doc' => 'application/msword',
'rtf' => 'application/rtf',
'xls' => 'application/vnd.ms-excel',
'ppt' => 'application/vnd.ms-powerpoint',
// open office
'odt' => 'application/vnd.oasis.opendocument.text',
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
);
$filename_parts = explode('.', $filename);
$ext = strtolower(array_pop($filename_parts));
if (array_key_exists($ext, $mime_types)) {
return $mime_types[$ext];
} elseif (function_exists('finfo_open')) {
$finfo = finfo_open(FILEINFO_MIME);
$mimetype = finfo_file($finfo, $filename);
finfo_close($finfo);
return $mimetype;
} else {
return 'application/octet-stream';
}
}
} -
Bonjour à tous,
Je suis webmaster du site Adnextmedia qui se veut être un guide de la monétisation en ligne. Je rencontre un problème avec le module Rokbooster qui permet d'optimiser le site (compression CSS,...) sous la plateforme Joomla.
Je rencontre l'erreur suivante :
Warning: finfo_file() [function.finfo-file]: Failed identify data 0:(null) in /home/jobirst/www/plugins/system/rokbooster/lib/RokBooster/Compressor/File.php on line 446
Warning: finfo_file() [function.finfo-file]: Failed identify data 0:(null) in /home/jobirst/www/plugins/system/rokbooster/lib/RokBooster/Compressor/File.php on line 446Je n'arrive pas du tout à la corriger.
Pourriez-vous m'aider svp ?
Merci d'avance à ceux qui me répondront.
Michaël
Format de Pub et Régies ?
dans Régies pub au clic/à l'affichage
Posté
Salut, tu peux utiliser des régies publicitaires il y en a plein. Concernant ta question, il s'agit de pubs rémunérées au clic (CPC).