dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] MP3 download

  1. #1
    Join Date
    Jun 2017
    Posts
    10

    resolved [RESOLVED] MP3 download

    How do I provide a file download prompt with PHP headers when a user redirects to my page? Or may I be pointed in the direction of where this question is answered? I had code that worked, but I accidentally deleted it can' t remember it.

  2. #2
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    1,749
    "with PHP headers"
    What does this mean?

    You want a page that brings a file down from your server to your client?
    JG
    PS - If you're posting here you should be using:

    error_reporting(E_ALL);
    ini_set('display_errors', '1');


    at the top of ALL php code while you develop it!

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    21,918
    The gist of things is in Example #1 on the header() manual page: http://php.net/manual/en/function.header.php

    PS: If you read through the comments there, you can come up with a number of suggestions/tips.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles