Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Playing online streaming in media players (http://stream-recorder.com/forum/forumdisplay.php?f=77)
-   -  

[php curl] m3u8 works on localhost but nor work on server

(http://stream-recorder.com/forum/showthread.php?t=20947)

Kerem 05-01-2016 03:07 AM

[php curl] m3u8 works on localhost but nor work on server


 
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? :confused:

Kerem 05-02-2016 03:39 PM

Re: [php curl] m3u8 works on localhost but nor work on server


 
Any help please? :)

MFA 05-12-2016 04:54 PM

Re: [php curl] m3u8 works on localhost but nor work on server


 
I have the same problem. Is there a way to by pass this problem ?

Kerem 05-20-2016 12:05 PM

Re: [php curl] m3u8 works on localhost but nor work on server


 
Kindly whom has an information about php please take a look at this problem. :confused:

codetr 05-27-2016 06:56 AM

Re: [php curl] m3u8 works on localhost but nor work on server


 
how to bypassing crossdomain.xml ???

Kerem 05-27-2016 01:31 PM

Re: [php curl] m3u8 works on localhost but nor work on server


 
Quote:

Originally Posted by codetr (Post 84516)
how to bypassing crossdomain.xml ???

Actually I don't know what cause this problem!
Is that related to crossdomain option?

Kerem 11-07-2016 04:03 PM

Re: [php curl] m3u8 works on localhost but nor work on server


 
Quote:

Originally Posted by codetr (Post 84516)
how to bypassing crossdomain.xml ???

Anyone could help me to do this please?

maycuaxuong 11-08-2016 01:06 AM

Re: [php curl] m3u8 works on localhost but nor work on server


 
may dong dai thung KZB-I l?* d??ng m??y Ä‘??ng Ä‘ai chuy??n dá»?ng v?* phổ th?´ng nhá??t hiện nay, há?§u há??t c??c nh?* m??y Ä‘á»?u sá»* dá»?ng m??y Ä‘??ng Ä‘ai th??ng loá??i n?*y cho việc Ä‘??ng g??i c??c sá??n phá?©m cho doanh nghiệp của m?¬nh.

Việc Ä‘??ng g??i c??c kiện h?*ng sá?? trá»? n??n Ä‘??n giá??n h??n vá»›i loá??i m??y n?*y. C??ng vá»›i Ä‘?? nÄ?ng duá??t Ä‘??ng g??i sá?? tÄ?ng gá??p bá»™i, giá??m Ä‘?°á»?c chi ph?* c?´ng nh??n c?©ng nh?° thá»?i gian Ä‘??ng g??i.

Chức nÄ?ng: Ä???ng Ä‘ai ná??p th??ng Ä‘á»? Ä‘á??m bá??o trong qu?? tr?¬nh bốc dá»? c?©ng nh?° vá?*n chuyá»?n sá??n phá?©m kh?´ng bị h?° há»?ng.

C??ch sá»* dá»?ng: Chỉ cá?§n Ä‘?°a sá??n phá?©m l??n m??y Ä‘??ng Ä‘?*i th??ng, sau Ä‘?? m??y sá?? tá»± Ä‘á»™ng th?*t chá?·t d??y Ä‘ai v?* h?*n cá??t d??y Ä‘ai.

nguyenvulan5 11-08-2016 08:17 AM

Quote:

Originally Posted by Kerem (Post 84161)
I've got m3u8 link for oen of the radio streams by using Curl in PHP:
HTML Code:

&lt;?php $url = &quot;http://karwan.tv/&quot;; function get_dataa($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, &quot;Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)&quot;); 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(&quot;\n&quot;,$variableee); $strr = $res[12]; echo $str = substr( $strr,8 ,184); ?&gt;
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: &quot;Forbidden.&quot; Generated output link: http://radio.karwan.me/karwan.tv/rad...1pbnV0ZXM9MjA= What would be the solution for this problem? :confused:



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

AllenRuh 12-05-2017 09:15 AM

тренажеры док


 
Заканчиваются мои занятия в центре Бубновского. Эффект есть, мне лучше, но работа еще только в самом начале.
Не передать удовольствие от занятий, счастье от улучшений. Но у Бубновского - дорого и ездить очень, очень далеко. Всему научилась, дальше смогу сама, но где.
Знаю, что есть в городе такие тренажеры в фитнес-залах. Искала сама - не нашла. Крик души - может кто-то знает где они есть? МТБ 1-4, называются.
Искала, искала и вот чего выискала. Поиск стал сразу легче!) Привожу цитату. Может кому пригодится! Эти тренажеры в самом деле есть во многих фитнес-центрах!

http://www.slovoprosvity.org.ua/?p=14452


All times are GMT -6. The time now is 04:11 PM.