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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:11:26+00:00 2026-06-01T10:11:26+00:00

I use this code below to hide stream url of songs for my wordpress

  • 0

I use this code below to hide stream url of songs for my wordpress site … this mean instead of: example.com/audio.mp3 url is example.com/streem.php?id=53502

I have tested it with default HTML 5 player and it works on chrome and IE, but this is not working with this player: http://goo.gl/HziDr

Can anybody tell me is my code ok?

Code of streem.php is:

<?php
require('./wp-config.php');  
$wp->init();  
$wp->parse_request();  
$wp->query_posts();  
$wp->register_globals(); 
$attachmentID = $_GET['id'];
$attachment = get_attached_file( $attachmentID , false );
header("Content-Transfer-Encoding: binary"); 
header('Content-Length: '. (string)filesize($attachment)); // provide file size
header('Content-type: audio/mpeg');
header('Cache-Control: no-cache');
readfile($attachment);
exit;
?>
  • 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-06-01T10:11:27+00:00Added an answer on June 1, 2026 at 10:11 am

    I don’t know that player, but it’s possible that it isn’t content-type aware and requires a file extension to work. You could append

    ‘&fmt=.mp3’

    to your URL and see if that helps. Your PHP script should ignore that query parameter but hopefully the player will see the .mp3 extension and then work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use this code: http://blogswizards.com/plugin-development/sliding-boxes-and-captions-with-jquery On a simple gallery site I am building. Specifically
This code triggers the complaint below: #!/usr/bin/perl use strict; use warnings; my $s =
I use below code to show folder list in AlertDialog: ListDialog = new AlertDialog.Builder(MyActivity.this);
This has been bothering me lately- when I use some code like below to
My code i use to parse HTMl is this below, and the 2nd code
I use this code to update data in database table. Can reuse same code
I use this code to process a date string coming in from a json
I use this code which is taken from MVC futures and attach the Attribute
I use this code to generate a random number. Random R = new Random(0);
I have a simple hide show jquery script I grabbed from an example site.

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.