need help with play.php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
peter70
Forum Newbie
Posts: 3
Joined: Sun May 30, 2010 7:42 pm

need help with play.php

Post 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>
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: need help with play.php

Post by requinix »

Use $_GET["id"] to lookup whatever the filename is, wherever you have them stored.
peter70
Forum Newbie
Posts: 3
Joined: Sun May 30, 2010 7:42 pm

Re: need help with play.php

Post 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
Post Reply