Hello I would like to know how to make a php script for Zapni.tv channels. They use http for streaming with tickets. Here is an example: _www.zapni.tv/play.php?id=240 . My purpose is to make a batchfile with those channels.
I tried with that but it's not opening VLC in batchfile.
Quote:
<?php
$ch = curl_init("http://www.zapni.tv/play.php?id=240");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$page = curl_exec($ch);
preg_match_all('/(http):\/\/(www\.zapni\.tv\/stream\/vlc\.php)\?(.*)/', $page, $matches);
foreach($matches[0] as $v)
{
echo strip_tags($v) . "<br />";
}
?>
|
Thanks for help.