im trying to use php/mysql to serve real audio files. How do i prevent the location of the source files from being displayed.
This is what i have done, i have 2 files, one containing the embedded script for the real player called file1.php and the other generates the src link file2.php
*************file1.php ******
$file = file2.php?list=12345.txt
<object id="RAOCX" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="100" width="375">
<param name="controls" value="All">
<param name="autostart" value="true">
<param name="SRC" value="<?php print($file); ?>">
<param name="console" value="player1">
<embed src="<?php print($file); ?>" width="100" height="375" controls="All" autostart="true" console="player1">
</object>
*********file2.php**********
// add the directory path to the variable $list
$directory = "/path_to_files/". $list;
print ("http://host/".$directory);
this prevents the text file from being show in file1.php because it is displayed like this
<object id="RAOCX" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="100" width="375">
<param name="controls" value="All">
<param name="autostart" value="true">
<param name="SRC" value="file2.php?list=12345.txt">
<param name="console" value="player1">
<embed src="file2.php?list=12345.txt" width="100" height="375" controls="All" autostart="true" console="player1">
</object>
but its just a matter of pasting the url file2.php?list=12345.txt to get the print out the location in file2.php
is there anyway to hide this ?? ive tried checking for headers on file2.php but it doesnt seem to work cause no headers are passed when this is called <param name="SRC" value="file2.php?list=12345.txt">
Maybe there is another way of doing this or checking for different headers or forcing headers to be passed ??????????
any help would be appreciated, thanks