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 5955299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:05:39+00:00 2026-05-22T18:05:39+00:00

We have some mp3 file collection and flash player used this mp3 file, to

  • 0

We have some mp3 file collection and flash player used this mp3 file, to track mp3 file listing we render mp3 file using php file below is code

http://www/example.com/getFile.php?fileid=12

<?php
$id = $_REQUEST['fileid'];

// Some code to store download traking and get filename for this id in $filename var.
$filename = getFileName($id);

header('Content-type: audio/mpeg');
header('Content-Disposition: filename=' . $id . '.mp3');
readfile($filename);

?>

But mp3 file size in very big and player get break in IE, for that we also use below code

<?php
$id = $_REQUEST['fileid'];

// Some code to store download traking and get filename for this id in $filename var.
$filename = getFileName($id);

header('Location: '. $filename);
?>

this code working fine but its also chnages current URL
i.e http://www/example.com/getFile.php?fileid=12 to http://www/example.com/files/xyz.mp3

so user can easily download mp3 file direct how i prevent this? using php or other way ?

  • 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-22T18:05:40+00:00Added an answer on May 22, 2026 at 6:05 pm

    (Sorry, didn’t read the question properly when I originally posted – I see now that the problem is with IE and large file size)

    You could try telling IE the length, and flushing the buffers:

    header('Content-Length: ' . filesize($file));
    ob_clean();
    flush();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php-script (it fetches mp3-files from MySQL database) and flash-player for listening.
I have some sound file(basically mp3 but it can be of any bitrate). I
I am using a embeddable Flash based MP3 player (The standalone Version of Wordpress
Does anyone know of some mp3 playing code for the pocket PC. I have
I have some perl code that looks something like this: my @array = map
I have some php script updater.php which does some job for 1-2 minutes. Finishing
I have made a player that plays mp3 and does the job very well
I have some very large mp3's stored at a remote location and I presently
I have a mp3 file which I am sending through namevalue pairs and I
Possible Duplicate: Get the length of an audio file php i am using php

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.