This is a discussion on "Downloadable Pdf file" within the Web Page Design section. This forum, and the thread "Downloadable Pdf file are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Downloadable Pdf file
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Downloadable Pdf file
I have a pdf file that id like to allow people to download from my website.
Problem is i've never done this before, can anyone give me a brief run down of how to go about it? Thanks guys |
|
|
|
#2
|
|||
|
|||
|
Re: Downloadable Pdf file
Dont worry chaps.
I was googleing for the wrong search term and came up with nothing, hence the above query. I got it now. |
|
#3
|
|||
|
|||
|
Re: Downloadable Pdf file
Hi i no you have it now but for most beginners out there this is how you do it ok <a href="filenmame.pdf">Name of File</a> Depends on the extension if could be .exe .rar .zip .txt and so on please enjoy the experience
|
|
#4
|
|||
|
|||
|
Re: Downloadable Pdf file
Thanks for that aaron , i have a nasty habit of forgeting to provide the answers to my own questions when i finally figure it out lol.
Cheers mate, much appreciated |
|
#5
|
|||
|
|||
|
Re: Downloadable Pdf file
no problem mate jsut thought if there was a beginner to check this out then they would know what to do and there life would be much easier but if theres anything else you wanna know pm
Thanx Aaron |
|
#6
|
||||
|
||||
|
Re: Downloadable Pdf file
Just for reference, this is a handy little PHP script that forces a download rather than opening the file in a user's browser window:
|
|
#7
|
|||
|
|||
|
Re: Downloadable Pdf file
Hey Ryan mate can you use this for a Downloadable buy now button so when people click the buy now button they pay for it but they get an email with the link to the download the stuff i am selling
Thanx Aaron |
|
#8
|
||||
|
||||
|
Re: Downloadable Pdf file
No. This just forces a browser to download a file. For instance, if you linked to a .html file, the browser would open it up like a page, but if you linked to this script, and this script had paths to an html file, the browser would actually download it to the user's desktop.
|
|
#9
|
|||
|
|||
|
Re: Downloadable Pdf file
Ok. But did you understand what i mean cause thats what i am trying to solve in php mate is get something i have a buy now button and then when people click it they pay for the item but then they get an email with the link to the download the item as everysingle item i am sellnig will be home made 3d models with 3ds max and stuff so was wodnering if you could help me out on this
|
|
#10
|
||||
|
||||
|
Re: Downloadable Pdf file
Okay, you read as bad as you write. I understand now.
|
|
#11
|
|||
|
|||
|
Re: Downloadable Pdf file
Ryan, from what you saying, and correct me if im wrong, that nifty littkle script could have some pretty unpleasant applications if it was used by the wrong person.
|
|
#12
|
||||
|
||||
|
Re: Downloadable Pdf file
You know, I haven't thought of it before. But I just tested and it's not capable of downloading PHP files. I'm not good enough in this area of PHP to tell you whether it can be changed, but it seems like there's some type of safeguard here.
You can force download files on remote servers with the following function taken from http://php.net/
|
|
#13
|
|||
|
|||
|
Re: Downloadable Pdf file
ok mate maybe i try that then but i have some 1 making me the script i want for £15 hes going to use paypal for it
|
|
#14
|
|||
|
|||
|
Re: Downloadable Pdf file
I personally just have PDF files open in safari itself of course you could always right click on the link and press option to get Save target to change to save target as..
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#15
|
||||
|
||||
|
Re: Downloadable Pdf file
Yeah, Safari has such a nice implementation of a PDF viewer. That's right PC users! Another Mac thing that's better!
|
|
#16
|
||||
|
||||
|
Re: Downloadable Pdf file
Oh I forgot... Macs are PC's now.
|
![]() |
| Tags |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Downloadable newsletter? | AdRock | Webforumz Cafe | 9 | Oct 13th, 2007 01:00 |
| making pdfs downloadable | gribble | Web Page Design | 5 | Sep 14th, 2007 22:02 |
| Help with Downloadable document | fallregatta | Starting Out | 2 | Jun 11th, 2007 12:46 |
| Making some hyperlinks that are none downloadable/right-clickable | acrobat | Web Page Design | 14 | May 6th, 2007 06:46 |
| How to add downloadable files to my site (such as eBooks) | alisonf1972 | PHP Forum | 2 | Mar 11th, 2005 13:57 |