Page 1 of 1

need help with play.php

Posted: Sun May 30, 2010 7:57 pm
by peter70
Hello everyone i want to help this pop up play.php code now it works fine but i like my url link to be like this not the one i did

url link code

Code: Select all

www.site.com/play.php?id=1
play.php code

Code: Select all

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

?>



<object id="p67" 
height=70 width=434 

classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/">
<param name="URL" value="http://site.com/<?php echo $mURL; ?>" ref>
<param name="autostart" value="-1">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="50">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="7117">
<param name="_cy" value="1191">
<embed type="application/x-mplayer2" 
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
name="p12"
width=434
height=45
src="http://site.com/<?php echo $mURL; ?>"
showcontrols="true"
autostart="false"> </embed>
        </object>

Re: need help with play.php

Posted: Sun May 30, 2010 8:46 pm
by requinix
Use $_GET["id"] to lookup whatever the filename is, wherever you have them stored.

Re: need help with play.php

Posted: Mon May 31, 2010 6:39 am
by peter70
i did but not working i think i will to make xml file to store all mp3 file and make it id with each mp3 so can you help me with it thanks alot