Home
Forum
The Internet
Programming
[PHP] File Size (Beginner)
Site Map
Main Menu
Home
Shop
News
Domains
Forum
Web Hosting
Online-Shop
Joomla Templates (3)
Domain Names (3)
Web Templates (1)
List All Products
Product Search
Advanced Search
Download Area
Login Form
Welcome,
Guest
. Please
login
or
register
.
November 23, 2008, 05:53:27 PM
Username:
Password:
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forgot your password?
Links
[PHP] File Size (Beginner)
My Community
November 23, 2008, 05:53:27 PM
Top 10 Web Hosting
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: SMF - Just Installed!
Home
Help
Search
Shop
Login
Register
My Community
>
The Internet
>
Programming
>
[PHP] File Size (Beginner)
Pages: [
1
]
« previous
next »
Print
Author
Topic: [PHP] File Size (Beginner) (Read 1096 times)
Bykezzap
Full Member
Posts: 102
510.00 credits
View Inventory
Send Money to Bykezzap
[PHP] File Size (Beginner)
«
on:
July 13, 2007, 04:08:03 PM »
This is a little function i made to display the file size on B, Kb or Mb
<?
function displayFilesize($filesize){
$kb = 1024; // Kilobyte
$mb = 1048576; // Megabyte
if($filesize < $kb){
$size = $filesize . ' B';
}else if($filesize < $mb){
$size = round($filesize/$kb,2) . ' KB';
}else{
$size = round($filesize/$mb,2) . ' MB';
}
return (isset($size) AND $size != ' B') ? $size : '';
}
?>
Logged
SEO Articles
My Community
[PHP] File Size (Beginner)
«
on:
July 13, 2007, 04:08:03 PM »
Logged
Shadow1243
Sr. Member
Posts: 439
479.00 credits
View Inventory
Send Money to Shadow1243
Re: [PHP] File Size (Beginner)
«
Reply #1 on:
July 14, 2007, 02:43:42 AM »
goof info bro
thanls
Logged
SEO Articles
My Community
Re: [PHP] File Size (Beginner)
«
Reply #1 on:
July 14, 2007, 02:43:42 AM »
Logged
xoideo
Jr. Member
Posts: 80
129.00 credits
View Inventory
Send Money to xoideo
Re: [PHP] File Size (Beginner)
«
Reply #2 on:
August 12, 2007, 11:13:32 AM »
thx ! but i think lots people use it ?
too bush !
Logged
SEO Articles
Music Online !
http://4heart.ch
mahirharoon
Newbie
Posts: 16
16.00 credits
View Inventory
Send Money to mahirharoon
Re: [PHP] File Size (Beginner)
«
Reply #3 on:
March 09, 2008, 08:29:44 PM »
what is the use
Logged
SEO Articles
7oy3dy
Newbie
Posts: 5
9.00 credits
View Inventory
Send Money to 7oy3dy
Re: [PHP] File Size (Beginner)
«
Reply #4 on:
September 14, 2008, 01:19:45 PM »
Anyone know a way for me to learn CSS fast? ty vm
Logged
SEO Articles
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
The Webb
-----------------------------
=> Webb360.com Announcements
===> Website Suggestions
=> Webb360.com Product Support
===> Presale Questions
=> Hosting and Domain Requests
===> Denied Requests
-----------------------------
The Internet
-----------------------------
=> Web Design Discussion
===> Website Reviews
===> Web Designs For Sale
=> Domain Names
===> Domain Appraisals
===> Domains for Sale
=> Graphics and Multimedia
=> Programming
=> Computers
-----------------------------
The World
-----------------------------
=> News and World Discussion
=> Debate Forum
=> Sports
=> Forum Games
=> Entertainment
===> Video Games
=> Lounge
===> Member Introductions
Loading...