Gossamer Forum
Home : Products : DBMan : Discussions :

How can i use SSI in html.pl?

Quote Reply
How can i use SSI in html.pl?
This has probably been answered before but..........

How can i use SSI in the html.pl file?

I have a URL field where (supprise supprise) i have the link to a file. I also want to show the size of file the link refers to.

How can i do this?



Thx
Quote Reply
Re: [bil] How can i use SSI in html.pl? In reply to
There is a section in the FAQ noted below for SSI.

I don't have an answer as to how you would get the file size unless you have your users enter that into a field?

The only related thread for checking file sizes is for the image upload mod, and that is just for a total file size of a directory. Which is this thread reference:

Subject: How to count the files and total size of my upload directorie?
Sunny - 30-Aug-99

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [bil] How can i use SSI in html.pl? In reply to
File size is a simple mateer of...

my $size = -s "/path/to/file";
Quote Reply
Re: [RedRum] How can i use SSI in html.pl? In reply to
In Reply To:
File size is a simple mateer of...

my $size = -s "/path/to/file";
Ok, i'm a bit of a newbie. So where exactly would i put this code?