View Single Post
  #9  
Old 11-08-2016, 08:17 AM
nguyenvulan5 nguyenvulan5 is offline
Junior Member
 
Join Date: Nov 2016
Posts: 5
nguyenvulan5 is on a distinguished road
Default

Quote:
Originally Posted by Kerem View Post
I've got m3u8 link for oen of the radio streams by using Curl in PHP:
HTML Code:
<?php $url = "http://karwan.tv/"; function get_dataa($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false); curl_setopt($ch, CURLOPT_MAXREDIRS, 10); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $data = curl_exec($ch); curl_close($ch); return $data; } $variableee = get_dataa('http://karwan.tv/live/radio/radio-dewran.php'); $res = explode("\n",$variableee); $strr = $res[12]; echo $str = substr( $strr,8 ,184); ?>
And I't works like a charm on localhost. But when I upload this file to my website, the generated link will not work. When I opened the link it shows me this error on a white page: "Forbidden." Generated output link: http://radio.karwan.me/karwan.tv/rad...1pbnV0ZXM9MjA= What would be the solution for this problem?


THIá??T Ká?? WEB Tá?*I THIETKEWEBCHUYEN .COM THEO Y?ŠU Cá?¦U TRá»?N G?“I CHá»? 1.990.000 VND -?€€0986.184.211 (VIBER-ZALO) (Mr. Ngá»?c)

Trang web sá?? thiá??t ká?? giao diện theo y??u cá?§u ri??ng, há»?p sá»? th?*ch, phong thá»§y, vá?*n mệnh… Ä‘á»? giá»›i thiệu sá??n phá?©m, dịch vá»?, c?´ng ty, cá»*a h?*ng … Ä‘á»? bá??n ph??t triá»?n kinh doanh kh?´ng ngừng.

TRANG WEB Sá?? Ä???á»?C Bá??O H?€NH VĨNH VIỄN


C??C DỊCH VỤ KH??C:

Quá??n l?? ná»™i dung Fanpage: 900,000 VNÄ?/ Th??ng
Quá??n l?? ná»™i dung Webstie: 700,000 VNÄ?/ Th??ng
Seo google adword
RAO Vá?¶T TRá»?N G?“I CHá»? VỚI 2,000,000 / TH??NG
Vá»›i 2,000,000 bá??n sá?? c??:

- Ä?Ä?ng 1000 nh??m facebook/th??ng (má»—i nh??m từ 5,000 -> 100,000 th?*nh vi??n).

- Ä?Ä?ng 1000 tin/th??ng web rao vá?·t v?* diá»…n Ä‘?*n lá»›n

- Ä?Ä?ng 1000nh??m/th??ng google plus (má»—i nh??m từ 1000 -> h??n 10,000 th?*nh vi??n)


H??y li??n hệ th?´ng tin b??n d?°á»›i ( kh?´ng b?¬nh luá?*n v?*o b?*i viá??t n?*y v?¬ m?¬nh kh?´ng xem lá??i tin nhá??n tá??i Ä‘??y)

+ 0986.184.211 (VIBER-ZALO) (Mr. Ngá»?c) ( bá??n c?? thá»? nhá??n tin Ä‘á»? y??u cá?§u gá»?i lá??i miá»…n ph?*) - 0902.836.561
+ Email: NgocTran@ThietKeWebChuyen.com - SKYPE: confirmdnt
+ Website: ThietKeWebChuyen. com
Reply With Quote