Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $lista_de_ficheros = array_diff( scandir("."), array("..",".") );
- $directorios = 0;
- $bytes = 0;
- $count = 0;
- foreach($lista_de_ficheros as $array => $nombre)
- {
- if (is_dir($nombre))
- {
- $directorios++;
- }
- }
- require ("config.php");
- $query = "Select ID,size from baf_files";
- $mk = mysql_query($query);
- while($a = mysql_fetch_array($mk))
- {
- $bytes += $a['size'];
- $count++;
- }
- echo "Hay un total de ".number_format($bytes)." bytes en ".$count." archivos.<br>";
- echo "Hay ".$directorios." categorias creadas.<br>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement