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
screen3
ai, Apple, Blog, Coding, Creative Rigor, Ed Tech, EdFailFwd, Featured

How AI Helped Me Build My First Indie App — and Why Creativity Still Matters

billselak-nickprovenzano
ai, Blog, Ed Tech, Education Leadership, Featured, interview, Podcast

Supercharging Creativity: AI in Education, and Empowering Learners

bst127november
Blog, Ed Tech, Featured, Music, Podcast, Rising Decline

Rising Decline Revisited: November Tragedies [Part 17 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

  • How AI Helped Me Build My First Indie App — and Why Creativity Still Matters
  • Supercharging Creativity: AI in Education, and Empowering Learners

Search

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