Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

filesize()

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Isoss
Smarty n00b


Joined: 20 Aug 2006
Posts: 1

PostPosted: Sun Aug 20, 2006 4:04 pm    Post subject: filesize() Reply with quote

Hello. I have been using smarty for a while now and I love it. Now as I am rebuilding my website with smarty I came to the point where I need to specify the sizes of my downloadable mp3 files which are retreived from the db and implemented in my template using {foreach}.
So each file path is retrieved from the db ... How can I get the filesize of the retrived files using the file path?

Thanks
Back to top
View user's profile Send private message
Pap
Smarty Regular


Joined: 21 Jun 2006
Posts: 69
Location: Denver, CO

PostPosted: Sun Aug 20, 2006 10:03 pm    Post subject: Reply with quote

I believe:

{$myfile|@filesize}
_________________
Don't be stupid, be a Smarty™.
Come and join the P-H-Party.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP