Jump to content

XML Playlist


bravo14

Recommended Posts

I'd recommend you create a table on a database, with the fields (just winging it here) id, owner, title, link. Then you just have them upload files to your server, and have it save the relative link for that file in the database. Next, for each user, you just have it build the XML file on the fly from the database.  If you can come up with some code, I'll be glad to review and improve it for you.

Link to comment
https://forums.phpfreaks.com/topic/137763-xml-playlist/#findComment-720155
Share on other sites

take a look at this.

 

http://simpleforum.ath.cx/pop.php

 

you can convert this to play youtube tunes.

 

get the user to post the right link to the database save you time and bandwidth.

 

just an i dear for you.

 

pop.php

<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=344,width=425');
if (window.focus) {newwindow.focus()}
return false;
}

// -->
</script>

<?php

$a=array(
"michel jackson 1"=>"http://www.youtube.com/v/vd15YVb2M6M&hl=en&fs=1",
"michel jackson 2"=>"http://www.youtube.com/v/0w0mAcwJ3NE&hl=en&fs=1",
"pink 1"=>"http://www.youtube.com/v/X-tbJOFcQw8&hl=en&fs=1",
"pink 2"=>"http://www.youtube.com/v/L7JCcHOnMyw&hl=en&fs=1"
);

foreach($a as $key=>$val){


?>

<a href="pop2.php?mov=<?php echo $val;?>" onclick="return popitup('pop2.php?mov=<?php echo $val; ?>')"><?php echo $key; ?></a>

<br><br>

<?php }?>

 

 

<?php session_start();?>

<object width="425" height="344"><param name="movie" value="<?php echo $_GET['mov']; ?>"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="<?php echo $_GET['mov']; ?>" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

Link to comment
https://forums.phpfreaks.com/topic/137763-xml-playlist/#findComment-720166
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.