Parašė KenTazZ· 2012 Kov. 20 16:03:16
#1
echo "<div class=\"line\"></div>";
$what="foto";
$kiek=0;
$irasai=glob($what.'/*.*');
$sk=count($irasai);
for($i=0;$i<$sk;$i++) {
$size=filesize($irasai[$i])/1024;
$size=number_format($size, 2, '.', ' ');
$kiek=$kiek+$size; }
echo "<div class=\"f3\">Nuotraukų: $sk</div>";
$pages_sk=$total/$max_entries;
list($tikras_sk,$po_kablelio)=explode(".", $pages_sk);
if($po_kablelio !=""){$tikras_sk=$tikras_sk+1;}
if($tikras_sk == "0"){$tikras_sk="1";}
if($puslapis == ""){$puslapis="1";}
echo "<div class=\"f3\">Puslapis: $page/$tikras_sk ($total)</div></p>";
print '<div class=\"center\">';
echo "<div class=\"line\"></div>";
echo "<div class=\"f4\"><a href=\"galerija.php?wap=$wap&kk=\">Atgal</a></div>";
echo "<div class=\"f3\"><a href=\"index.php?wap=$wap\">Pradžią</a></div>";
echo "<div class=\"line\"></div>";
echo "<div class=\"antraste\">:: © $chat_title ::<br/>";
echo "Užkrovimo laikas: ".substr((get_microtime() - START_TIME),0,4)."s";
echo "</div><div class=\"line\"></div></p>
Reikia pagalbos!
Klaida stai tokia:
Warning: Division by zero in