Title: Downloads over PHP
Last modified: September 9, 2016

---

# Downloads over PHP

 *  Resolved [bl4cki](https://wordpress.org/support/users/bl4cki/)
 * (@bl4cki)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/downloads-over-php/)
 * Hey guys,
    is it possible to realise downloads with headers in WordPress too 
   or is it just possible to link a file?
 * I hope you understand what i mean..
 * Greetings and thanks

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/downloads-over-php/#post-8164503)
 * We don’t understand “downloads with headers”. PHP headers?
 *  Thread Starter [bl4cki](https://wordpress.org/support/users/bl4cki/)
 * (@bl4cki)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/downloads-over-php/#post-8164528)
 * Yes, with PHP headers, sorry for the bad explanation i’m not so good in english.
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/downloads-over-php/#post-8164551)
 * Ok, but PHP headers to show what? HTTP headers? Like:
 *     ```
       header('Content-Description: File Transfer');
       header('Content-Type: application/octet-stream');
       header('Content-Transfer-Encoding: binary');
       header('Connection: Keep-Alive');
       ```
   
 * You can do that with a page template.
 *  Thread Starter [bl4cki](https://wordpress.org/support/users/bl4cki/)
 * (@bl4cki)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/downloads-over-php/#post-8164576)
 * Yes like this, to initiate a Download. Thanks i’ll try it out! 🙂
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/downloads-over-php/#post-8164807)
 * You could link to a page template that only contains the headers you need and
   a link to the file, as you don’t want those headers on the main page template.
 * You can also force download files via mimetypes in .htaccess.
 *  Thread Starter [bl4cki](https://wordpress.org/support/users/bl4cki/)
 * (@bl4cki)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/downloads-over-php/#post-8166060)
 * Thanks it was really helpful I did it with a page template ! 🙂
    Closed then.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Downloads over PHP’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [bl4cki](https://wordpress.org/support/users/bl4cki/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/downloads-over-php/#post-8166060)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
