Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/10/2003, 13:35
Avatar de nuevo
nuevo
 
Fecha de Ingreso: mayo-2003
Ubicación: Spain
Mensajes: 2.009
Antigüedad: 20 años, 11 meses
Puntos: 2
mas vale tarde que nunca.... eso dicen


Código PHP:
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
       <title>Title here!</title>
</head>
<body>
<?php
//tamaño hdd

$quota "108.22"// tamaño de tu web o server en hdd, pon las megas

function obsah($adr,&$totalquota,&$dir,&$size){
  
$dp OpenDir($adr);

  do{
    
$itm=ReadDir($dp);
    if (
Is_Dir("$adr/$itm")&&($itm!=".")&&($itm!="..")&&($itm!="")){
      
obsah("$adr/$itm",$totalquota,$dir,$size);
      
$dir++;
    }
    elseif ((
$itm!=".")&&($itm!="..")&&($itm!="")){
      
$size $size FileSize("$adr/$itm");
      
$totalquota++;
    }
  } while (
$itm!=false);

  
CloseDir($dp);
}

obsah(".",$totalquota,$dir,$size);

$freeA $size/1024*1024;
$freeA $freeA/1024;
$freeA $freeA/1024;

$exp explode(".",$freeA);
$freeN substr($exp[1],0,2);
$freeA $exp[0].".".$freeN;

$freeB $quota-$freeA;
//tamaño hdd

echo <<< HTML
        Espacio Ocupado: <B>$freeA</B> Mb - Quota: <B>$quota</B> Mb - Espacio Libre: <B>$freeB</B> Mb - <B>$totalquota</B> ficheros y <B>$dir</B> carpetas.
HTML;
?>
</body>
</html>
espero que te sirva
__________________
3w.valenciadjs.com
3w.laislatv.com