Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Hide mp3 path with php

4 replies [Last post]

Hi,

I want to hide my mp3 file path.

I tried this php code but it doesn't work:

myfile.php:
<?php
$audio=array(
'1' => 'file1.mp3',
'2' => 'file2.mp3'
);
readfile ($audio[$_GET['mp3']]);
?>

test.html

...
s1.addParam('flashvars','file="myfile.php?mp3=1');
...

The code works fine with an image but not with an mp3 file.

Do you have some suggestions ?

Thanks

s1.addVariable('file', encodeURIComponent('myfile.php?mp3=1')};
s1.addVariable('type', 'sound');

You may not need the type in the very latest v4.4.x players. In fact, using it may stop the player from instantiating.

Ok, thanks, i'll try this.
By the way i have the 4.2.90 version, so i hope the player will not stop from instantiating

Hi lefty,

I have to use s1.addParam for the 4.2.90 version, so i tried your code (with addParam and with addVariable) but both doesn't work.

The code:

test.html

<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var s1 = new SWFObject("mediaplayer/player.swf","ply","350","350","7","#ffffff");

      s1.addVariable("allowfullscreen","true");
              s1.addVariable("allowscriptaccess","always");
              s1.addVariable("wmode","opaque");

s1.addVariable("file", encodeURIComponent("myfile.php?mp3=1"));

s1.addVariable("type", "sound");
s1.write("player1");

</script>';

What you think ?

Thanks

I want Hide real pathe on my Mp3 ,Zip Files & I want There id & change locatione so pls give me php file