Mam problem ze statystykami i już nie mam pojęcia gdzie jest błąd... Problem jest taki, że download jak i upload wyświetla mi w jednej kolumnie -> SKRYPT
Poniżej wklejam kod php:
<?php #main_text_open(); $chunksize = 1*(1024*1024); // how many bytes per chunk if ($handle === false) { return false; } echo '<table align="center" width="80%" border="0" cellspacing="2" cellpadding="2"> <tr align="center" style="padding-bottom: 10px;"><td class="title"> </td> <td class="title"><strong>Komputer</strong></td> <td class="title" align="center"><strong>Download</strong></td> <td class="title" align="center"><strong>Upload</strong></td></tr>'; $zlicz=1; $down=0; $up=0; for ($i=1;$i<count($buffer3);$i++) { if ($buffer2[0] !='') { <td style="padding-left: 10px;">'.$buffer2[0].'</td> </tr>'; $zlicz=$zlicz+1; } } echo '<tr style="padding-top: 10px;"><td> </td> <td align="center"><strong>razem</strong></td><td align="right" style="padding-right: 30px;"><strong>'.$down; } #main_text_close(); ?>
A to jest plik nsstats.txt...
<?php download rate - ( utilize ) Piekarnia_1 256kB/s - ( 0kB/s ) Piekarnia_2 216kB/s - ( 0kB/s ) Bezimienny 256kB/s - ( 30kB/s ) Master 232kB/s - ( 0kB/s ) Sklep 174kB/s - ( 0kB/s ) Zorro7 256kB/s - ( 0kB/s ) Aga 256kB/s - ( 0kB/s ) Damian 256kB/s - ( 83kB/s ) upload rate - ( utilize ) Piekarnia_1 52kB/s - ( 0kB/s ) Piekarnia_2 52kB/s - ( 0kB/s ) Bezimienny 34kB/s - ( 34kB/s ) Master 40kB/s - ( 0kB/s ) Sklep 36kB/s - ( 0kB/s ) Zorro7 52kB/s - ( 0kB/s ) Aga 52kB/s - ( 0kB/s ) Damian 52kB/s - ( 3kB/s ) Powered by NiceShaper <a href="http://niceshaper.jedwabny.net" target="_blank">http://niceshaper.jedwabny.net</a> ?>
Z góry dziękuję za pomoc!
pozdr