Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/05/2007, 17:22
Anarko
 
Fecha de Ingreso: febrero-2004
Mensajes: 1.987
Antigüedad: 21 años
Puntos: 22
Re: Como instalo esta libreria en Windows ?

Resulta que si se puede en win

Primero vas a http://pecl4win.php.net/ext.php/ y te bajas http://pecl4win.php.net/ext.php/php_fileinfo.dll

Luego agregas esta linea en tu PHP.INI:

extension=php_fileinfo.dll

Tu script queda algo asi:

Código PHP:
$finfo=finfo_open(FILEINFO_MIME,'ruta absoluta a tu magic');
$file=$_SERVER['DOCUMENT_ROOT'].'/file.extension';
echo 
'<h3>'.finfo_file($finfo,$file).'</h3>'
Y ya aqui si toca con Cluster, por que SIEMPRE entrega este resultado:

application/x-dpkg

Independientemente del tipo de file.

Alguna solucion ?