dunque.....io ho fatto così
sembrerebbe funzionarecodice:<?php include 'conn.php'; mysql_select_db($db_name,$conn) or die("Errore nella selezione del db: " . mysql_error()); $st=mysql_query("SHOW TABLE STATUS") or die(mysql_error()); $totale=0;$massimo=100000; while($row=mysql_fetch_assoc($st)){ $totale=$totale+$row['Data_length'] + $row['Index_length']; $spazio_disp = round($massimo-$totale/1024,2)/1000; } echo 'Spazio DB disponibile: '. number_format($spazio_disp,2) .' MB'; ?>
che ne dite ? è una cosa furba![]()

Rispondi quotando