Results 1 to 5 of 5
Thread: Getting PDF Size and Posting
Jul 26, 2007, 15:14 #1
- Join Date
- Jun 2005
- 0 Post(s)
- 0 Thread(s)
Getting PDF Size and Posting
I don't know if this is JS, but I think the DOM would help do it....
Anyhow... I link to a lot of PDF files statically for a website I maintain. Is there any way to use JS or PHP to find out if the file is a PDF in the link, then add the file size to the link text dynamically?
for example.... <a href="pdflink.pdf" target="_blank">PDF LINK $size</a>, but with out me adding $size everytime?
I know how to get the file size in PHP... just seeing if there is a quicker way more efficient way with the DOM for every PDF a href...