WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Create link to PDF file

[Resolved] Create link to PDF file

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator kmessinger

    @kmessinger

    Forum Moderator

    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.

    MaximumGames

    @maximumgames

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

    MaximumGames

    @maximumgames

    We figured it out! Thanks!

    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)

    Moderator kmessinger

    @kmessinger

    Forum Moderator

    @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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Create link to PDF file’ is closed to new replies.