Could Anyone tell me what is the problem?.
Thank in advance.
Code: Select all
$playlist = "";
$ip = $_SERVER['SERVER_ADDR'];
if ( isset( $_POST ) )
{
$postArray = $_POST ;
}
else
{
$postArray = $HTTP_POST_VARS ;
}
foreach ( $postArray as $sForm => $value )
{
$playlist .= "http://localhost:8080/dmc/".$value."\n";
}
echo $playlist;
$fp = fopen("playlist.m3u","wb");
fwrite($fp,$playlist);
fclose($fp);
echo "<div id=\"videoFrame\">";
echo "<table id=\"videoTable\">";
echo "<tr>";
echo "<td>";
echo "<embed type=\"application/x-vlc-plugin\" name=\"video1\" id=\"video1\" autoplay=\"yes\" loop=\"yes\" width=\"1\" height=\"1\" target=\"playlist.m3u\" />";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</div>";
?>