Links to downloadable files on my site

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lynchpin
Forum Commoner
Posts: 60
Joined: Mon Jul 21, 2008 1:31 pm

Links to downloadable files on my site

Post by lynchpin »

Hi,
I want members of my site to be able to login to a members section, where they can click on links to pdf files which they can either print off or download. I have done the login bit, but have no idea how to implement the links to the PDF files.

I also want to ask how this will affect the traffic on my site, and the transfer limit on my site?

Please advice.

Thanks.
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: Links to downloadable files on my site

Post by it2051229 »

you can place the PDF's in the hosted directory.. like for example my hosting account makes use of the domain name "http://it2051229.oxyhsot.com/" and I just moved my PDF file like for example "myPDF.pdf" on the hosted directory... so if i want to let the file downloadable.. the link would be something like "http://it2051229.oxyhost.com/myPDF.pdf". If you want to make things more organizes you can create another directory in your hosted directory like for example "PDFDirectories" and lets move the "myPDF.pdf" on that directory. Using the link "http://it2051229.oxyhost.com/PDFDirectories/myPDF.pdf" you can download the file.
lynchpin
Forum Commoner
Posts: 60
Joined: Mon Jul 21, 2008 1:31 pm

Re: Links to downloadable files on my site

Post by lynchpin »

Thanks a lot

But do you happen to know how this might impact my transfer limit and site traffic?
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: Links to downloadable files on my site

Post by panic! »

That question is hard to answer, it depends on the file size of your PDFs and how many times they are downloaded..

If each file is 10MB and is downloaded 100 times.

Your transfer rate will be 1000MB more than usual (10 x 100=1000MB).

If each file is 1k and is downloaded once.

Your transfer rate will be 1k more than usual (1k x 1 =1k).
Post Reply