Hent variabler ind i playlist
Jeg skal have afspillet en dynamisk playlist i browseren.hovedsidens kode:
<html>
<head>
<title>Untitled</title>
</head>
<body>
<?
$nr1 = "SW.mp3";
$nr2 = "Dynasty.mp3";
?>
<object id="MediaPlayer" width="320" height="150" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" align="baseline" border="0" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="FileName" value="playlist.php">
<param name="ShowControls" value="1">
<param name="ShowPositionControls" value="0">
<param name="ShowAudioControls" value="1">
<param name="ShowTracker" value="1">
<param name="ShowDisplay" value="0">
<param name="ShowStatusBar" value="1">
<param name="AutoSize" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowCaptioning" value="0">
<param name="AutoStart" value="1">
<param name="AllowScan" value="1">
<param name="EnableContextMenu" value="1">
<param name="ClickToPlay" value="0">
</object>
</body>
</html>
playlist kode: playlist.php
<asx version="3">
<title>myPlayList</title>
<entry><ref href="<? echo $nr1; ?>" /><title>minSang 1</title></entry>
<entry><ref href="<? echo $nr2; ?>" /><title>minSang 2</title></entry>
</asx>
dette virker ikke, men hvis jeg sætter variablerne i selve playlist.php virker det fint.
