View Single Post
  #1  
Old 10-24-2011, 08:04 AM
karlo2105 karlo2105 is offline
Senior Member
 
Join Date: Sep 2011
Posts: 318
karlo2105 is on a distinguished road
Default

Zapni.TV: make batch file with Zapni.TV channels for opening in VLC


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.

Last edited by karlo2105 : 10-24-2011 at 08:35 AM.
Reply With Quote