Forum Moderators: open
Title: Blah blah blah - current ([url=http://#]Abstract[/url]) ([url=http://#]Excerpt[/url]) ([url=http://#]Complete article in PDF[/url] 250K)Title: Blah blah blah - April ([url=http://#]Abstract[/url]) ([url=http://#]Excerpt[/url]) ([url=http://#]Complete article in PDF[/url] 180K)
A decision was made a long time ago to provide the file size, "265K" or whatever, for large PDF files. It's problematic to continually update these filesize numbers.
There are many pages where the link URL stays the same, but the file it links to is updated regularly ( and the filesize can change dramatically for each update). And sometimes there are many links on different pages all to this same file, so when one new file is loaded to the 'site there are a half dozen places where the file size info needs to be changed.
Is there any kind of code or script that can be placed where the filesize number goes that will automatically look at the file on the server and figure out how large the file is and then write that number on the HTML page?
Thanks!
Is there any kind of code or script that can be placed where the filesize number goes that will automatically look at the file on the server and figure out how large the file is and then write that number on the HTML page?
You know, I think there is. I've got a feeling I came across an asp script for doing this a while back. If you've got asp capability I can see if I can dig it up from somewhere. Alternatively I think you can also do it with PHP.