Bill Selak
All That is EduAwesome
  • Podcast
    • Subscribe on Apple Podcasts
    • Subscribe on Google Play
    • Subscribe on Stitcher
    • Subscribe on Deezer
  • Blog
    • How-to
    • Editorial
    • Presentations
    • Ed Tech
    • Music
  • Rising Decline Project
    • The Rising Decline Project on Bill Selak Talks: Part 1 of 30
    • The Rising Decline Project on Bill Selak Talks: Part 2 of 30
    • The Rising Decline Project on Bill Selak Talks: Part 29 of 30
    • The Rising Decline Project on Bill Selak Talks: Part 30 of 30
  • Photography
    • Project 52
    • Photo-a-Day Year 4
    • Hollywood Photowalk 2012
    • selakphotography.com
    • Photo-a-Day older blog, with 1095 daily photos
  • Hi, I’m Bill Selak
    • Bio
    • Presentations
    • Consulting
January 29, 2009
download, How-to, html, tutorial, Web Design
Like 0 Thanks! You've already liked this
Blog, Hosting, How-to, html

How to: html to make a pop-up window for downloading files

Problem: I have a movie hosted. I can link to it; however, I want people to download the movie, not view it in a browser.

Solution:
Here’s the paraphrased version I learned from the brilliant folks at Boutell.com. Create a page (in Dreamweaver, or wherever) with the following:
<?php
header('Content-disposition: attachment; filename=yourmovietitle.mov');
header('Content-type: video/mov');
readfile('yourmovietitle.mov');
?>

Save that file as movielink.php, or something more specific. Add that to the same folder (on your host) that your movie is in. Change the name from movie.mpg to the actual name of your file. Finally, write the link as <a href="movielink.php">Download me</a>.
You create a file that forces your browser to save, not open.

Happy Birthday Mac! iLife ’09
bst122 happyface pt12
Blog, Ed Tech, Featured, Music, Podcast, Rising Decline

Rising Decline Revisited: Happy Face [Part 12 of 18]

bst122 happyface pt11
Blog, Ed Tech, Education Leadership, Featured, Music, Podcast, Rising Decline

Rising Decline Revisited: Happy Face and the Mask We Wear [Part 11 of 18]

bst120 moondoggies pt10
Blog, Ed Tech, Featured, Music, Podcast

Rising Decline Revisited: I Got Fired From Moondoggies [Part 10 of 18]

Featured

  • IMG_5097Navigating New Realms: AI’s Role in Shaping Educator Identities
  • IMG_4958The Educator’s Guide to AI-Powered App Development
  • IMG_4828Punk Rock and Pedagogy: Lessons in Authenticity from Blink 182

Subscribe to Podcast

Apple PodcastsAndroidby EmailRSS

Recent Posts

  • Rising Decline Revisited: Happy Face [Part 12 of 18]
  • Rising Decline Revisited: Happy Face and the Mask We Wear [Part 11 of 18]

Search

  • Featured Posts
  • Presentations
© Bill Selak 2025
Powered by WordPress • Themify WordPress Themes