PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Feb 24, 2020 9:58 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Tue May 07, 2002 5:53 pm 
Offline
Forum Contributor
User avatar

Joined: Tue May 07, 2002 5:53 pm
Posts: 217
Location: West Chester, PA
Hey, I'm trying to make a page that lists the files in a certain folder, but also shows an image for each file type, tells the file type, and shows the file size. I have the list part down at but I cant get it to show the file size or anything else. Please help. The PHP file that lists the files is at . Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 08, 2002 8:11 am 
Offline
Site Admin
User avatar

Joined: Fri Apr 19, 2002 8:29 am
Posts: 175
Location: Dallas, Tx


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 08, 2002 8:53 am 
Offline
Forum Regular
User avatar

Joined: Fri May 03, 2002 3:33 am
Posts: 512
Location: Edinburgh, Scotland


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 08, 2002 9:23 am 
Offline
Site Admin
User avatar

Joined: Fri Apr 19, 2002 8:29 am
Posts: 175
Location: Dallas, Tx


Top
 Profile  
 
 Post subject: Whats all that?
PostPosted: Wed May 08, 2002 2:07 pm 
Offline
Forum Contributor
User avatar

Joined: Tue May 07, 2002 5:53 pm
Posts: 217
Location: West Chester, PA
I guess im only good with if statements...lol.....btw, i already looked at the manual for filesize() but thats why i asked for help, i wish they gave examples. I'll try to underastand all of that code, but in case....can anyone give me a 'snipit' of code on how to get the file size of a file called....oh say....bob.html

Thanks guys!


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 08, 2002 2:23 pm 
Offline
Site Admin
User avatar

Joined: Fri Apr 19, 2002 8:29 am
Posts: 175
Location: Dallas, Tx
hmmm...how hard is "filesize ( string filename)" ?

$size=filesize("bob.html");
echo $size;

pretty tough there ;)
-enygma


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 09, 2002 3:08 am 
Offline
Forum Regular
User avatar

Joined: Fri May 03, 2002 3:33 am
Posts: 512
Location: Edinburgh, Scotland


Top
 Profile  
 
 Post subject: Odd...
PostPosted: Thu May 09, 2002 7:58 pm 
Offline
Forum Contributor
User avatar

Joined: Tue May 07, 2002 5:53 pm
Posts: 217
Location: West Chester, PA


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group