Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 903289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:51:09+00:00 2026-05-15T15:51:09+00:00

I’d like to create a PHP page which shows a message like Your download

  • 0

I’d like to create a PHP page which shows a message like

Your download will begin shortly.

If it does not start, please click here to restart the download

i.e., the same type of page that exists on major websites.

It will work like this:

<a href="download.php?file=abc.zip">Click here</a>

When the user clicks that link, he is led to download.php which shows him that message, and then offers the file for download.

How can I do this?

Thanks so much!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:51:09+00:00Added an answer on May 15, 2026 at 3:51 pm

    The link needs to do one of two things:

    • point directly to the file on your web server
    • point to a PHP script which will do NOTHING but set the appropriate headers and serve the file as the page body. No text output! See http://teddy.fr/blog/how-serve-big-files-through-php for how to actually serve the file.

    One way to get the browser to start the download “on its own” is to use a META REFRESH tag.

    Another way is to use JavaScript, such as this (from Mozilla’s Firefox download page):

    function downloadURL() {
        // Only start the download if we're not in IE.
        if (download_url.length != 0 && navigator.appVersion.indexOf('MSIE') == -1) {
            // 5. automatically start the download of the file at the constructed download.mozilla.org URL
            window.location = download_url;
        }
    }
    
    // If we're in Safari, call via setTimeout() otherwise use onload.
    if ( navigator.appVersion.indexOf('Safari') != -1 ) {
        window.setTimeout(downloadURL, 2500);
    } else {
        window.onload = downloadURL;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.