Experts help me in code

Started on the old forum in February 2012 · view the original in the archive · old links redirect here

3 replies · 366 views · started 14 years ago · 1 min read

4 participants
Lue_chin Developer · 107 posts #1

hello friends i want a code that if the file less than 10 kb then show nothing and if file more than 10 kb show somthing like its size = +10 kb

something else Fellow · 2,296 posts #2

errrrrr why 10kb?

$filename = 'somefile.txt';
$filesize = filesize($filename);
if($filesize>1280)
{
    echo $filename . ': ' . $filesize;
}
softwarefreak Senior · 349 posts #4

makvanpor2000 wrote: I think this will work if you increase the filesize

lol, are you weighing potatos? This'll work perfectly,cuz the function filesize() returns the size of a file in bytes 🙂

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close