![]() |
Bytes conversion
Is there already a functions or class that can be used to convert bytes to whatever it should be such as KB, MB, GB, etc?
I have been trying to find a conversion method to include with my mod but every one of the method's I have found don't work, either I can't seem to get them to match vB or something. Here is one I found: PHP Code:
PHP Code:
|
PHP Code:
|
Ok now how do I implement that into my file?
Do I use this: Code:
$query = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "download AS download |
This should work:
PHP Code:
|
thank you, gonna give that a try now.
--------------- Added [DATE]1238995567[/DATE] at [TIME]1238995567[/TIME] --------------- Worked like a charm, tyvm. --------------- Added [DATE]1238995605[/DATE] at [TIME]1238995605[/TIME] --------------- BTW, what file is vbmksize() function located in? I had to create my own file but would rather include a vb file if it already exists in one. |
All times are GMT. The time now is 08:22 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|