WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [closed] Create link to PDF file (6 posts)

  1. MaximumGames
    Member
    Posted 10 months ago #

    I need to embed a link on this page that will enable a user to click on it to download a pdf manual. Any help would be much appreciated.

    http://www.maximumgames.com/air-conflicts-pacific-carriers/

  2. kmessinger
    Volunteer Moderator
    Posted 10 months ago #

    A normal link
    <a href="http://www.mysite/wherethePDFisstored" title="Title of PDF">Click here for PDF</a>
    Some browsers will download the file first, some will just open it and then you have the option to save the file. Totally up to the browser.

  3. MaximumGames
    Member
    Posted 10 months ago #

    Do you know where this line of code should be entered?

  4. MaximumGames
    Member
    Posted 10 months ago #

    We figured it out! Thanks!

  5. Fatih SARI
    Member
    Posted 10 months ago #

    You want hotlink to files.
    You can it.

    1. Create a any php file.
    2. Paste this codes to this file. (http://pastebin.com/8UuysSqV)
    3. Edit your link same this: http://fatih.co/hotlink.php?url=http://fileurl.com/yourfile.pdf&type=application/pdf&name=yourfile.pdf

    ::details::
    *url is your file full url. with http
    *type is your file mime type. (what is mime types? - http://www.webmaster-toolkit.com/mime-types.shtml)
    *name is your file name, after download (in pc)

  6. kmessinger
    Volunteer Moderator
    Posted 10 months ago #

    @Fatih SARI

    In the webmaster community, "hot linking" is a curse phrase. Also known as "bandwidth stealing" by the angry site owner, it refers to linking directly to non-html objects not on one own's server, such as images, .js files etc. The victim's server in this case is robbed of bandwidth (and in turn money) as the violator enjoys showing content without having to pay for its deliverance. The most common practice of hot linking pertains to another site's images.

    Since the OP's problem has been solved I am marking this resolved and closed.

Topic Closed

This topic has been closed to new replies.

About this Topic