![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 9 Pomógł: 0 Dołączył: 14.01.2004 Ostrzeżenie: (0%) ![]() ![]() |
mam taki fragment kodu:
[php:1:0b50dafa9f] function size () { $path = $this->dir . $this->name (); if (file_exists ($path)) { return filesize ($path); } return '[Brak pliku]'; } ?>[/php:1:0b50dafa9f] On wyświetla mi rozmiar w bajtach, a jak zmienic na MB ? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 9 Pomógł: 0 Dołączył: 14.01.2004 Ostrzeżenie: (0%) ![]() ![]() |
A jak zrobić żeby dokładność była do dwoch miejsc po przecinku (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 3.10.2025 - 21:38 |