Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

Question Can somebody help to make php script?

dindin

Extended Member
Ext. Member
Joined
Sep 27, 2019
Messages
99
Reaction score
312
Points
74
Location
germany
Hi Guys,
Can somebody help me to make php script for this website:



i created this php script but it doesnt work yet:

PHP:
<?php

$url = 'https://www.glwiz.com/Pages/Player/Ajax.aspx?action=getStreamURL&ClusterName=zixi-glwiz-box&RecType=4&itemName=IRIBChannel1&ScreenMode=0&prt=https://www.glwiz.com/Pages/Player/Player.aspx';

#$stream = glwiz($url);

$stream=json_decode(glwiz($url),true);

print_r ($stream);



function glwiz($url){


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'authority' => 'www.glwiz.com',
    'accept' => '*/*',
    'accept-language' => 'fi,en-US;q=0.9,en;q=0.8',
    'referer' => 'https://www.glwiz.com/Pages/Player/p2.html?t2=1675265014200',
    'sec-ch-ua' => '"Not_A Brand";v="99", "Google Chrome";v="109", "Chromium";v="109"',
    'sec-ch-ua-mobile' => '?0',
    'sec-ch-ua-platform' => '"Windows"',
    'sec-fetch-dest' => 'empty',
    'sec-fetch-mode' => 'cors',
    'sec-fetch-site' => 'same-origin',
    'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36',
    'x-requested-with' => 'XMLHttpRequest',
    'Accept-Encoding' => 'gzip',
]);
curl_setopt($ch, CURLOPT_COOKIE, 'ASP.NET_SessionId=lulbyxc4mig54mvsl4xf15rf; __gads=ID=9a19f335364f72d5:T=1669630540:S=ALNI_MYvVsIxdhD7wehHR7huWR5MQHP4wQ; __auc=323cd1a1184bdbc878b76c03417; ISOCode=FA-EN; LanguageCode=EN; PackageCode=FA; SelectedLanguage=SecondLanguage; SelectedPackage=Farsi; _fbp=fb.1.1669630561951.605574382; _ga=GA1.2.434833227.1669630562; rememberMe=true; userEmail=uCGm0I4+obudBGYNi+1DPBbvfiVNMVuAYl8+msWcaXDNHgkPRhNWa2PRDLhufCe4; LoggedUser=KfT+E/dpQcyApxvNky6oX7b5ZA9OCI8h/aJU8w6Fs6w=; UserID=6clRq1sRN4WdmjKLRbAQQQ==; GLwizHostName=163.172.43.248; GLwizAutoLogin=true; GLwizUser=WB507109; _gid=GA1.2.1700301154.1675247668; __asc=5c0bc4931860d9268136d3103c1; _gat_gtag_UA_651909_6=1');

$response = curl_exec($ch);

curl_close($ch);

return $response;
}
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Hi Guys,
Can somebody help me to make php script for this website:

*** Hidden text: cannot be quoted. ***



i created this php script but it doesnt work yet:

PHP:
<?php

$url = 'https://www.glwiz.com/Pages/Player/Ajax.aspx?action=getStreamURL&ClusterName=zixi-glwiz-box&RecType=4&itemName=IRIBChannel1&ScreenMode=0&prt=https://www.glwiz.com/Pages/Player/Player.aspx';

#$stream = glwiz($url);

$stream=json_decode(glwiz($url),true);

print_r ($stream);



function glwiz($url){


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'authority' => 'www.glwiz.com',
    'accept' => '*/*',
    'accept-language' => 'fi,en-US;q=0.9,en;q=0.8',
    'referer' => 'https://www.glwiz.com/Pages/Player/p2.html?t2=1675265014200',
    'sec-ch-ua' => '"Not_A Brand";v="99", "Google Chrome";v="109", "Chromium";v="109"',
    'sec-ch-ua-mobile' => '?0',
    'sec-ch-ua-platform' => '"Windows"',
    'sec-fetch-dest' => 'empty',
    'sec-fetch-mode' => 'cors',
    'sec-fetch-site' => 'same-origin',
    'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36',
    'x-requested-with' => 'XMLHttpRequest',
    'Accept-Encoding' => 'gzip',
]);
curl_setopt($ch, CURLOPT_COOKIE, 'ASP.NET_SessionId=lulbyxc4mig54mvsl4xf15rf; __gads=ID=9a19f335364f72d5:T=1669630540:S=ALNI_MYvVsIxdhD7wehHR7huWR5MQHP4wQ; __auc=323cd1a1184bdbc878b76c03417; ISOCode=FA-EN; LanguageCode=EN; PackageCode=FA; SelectedLanguage=SecondLanguage; SelectedPackage=Farsi; _fbp=fb.1.1669630561951.605574382; _ga=GA1.2.434833227.1669630562; rememberMe=true; userEmail=uCGm0I4+obudBGYNi+1DPBbvfiVNMVuAYl8+msWcaXDNHgkPRhNWa2PRDLhufCe4; LoggedUser=KfT+E/dpQcyApxvNky6oX7b5ZA9OCI8h/aJU8w6Fs6w=; UserID=6clRq1sRN4WdmjKLRbAQQQ==; GLwizHostName=163.172.43.248; GLwizAutoLogin=true; GLwizUser=WB507109; _gid=GA1.2.1700301154.1675247668; __asc=5c0bc4931860d9268136d3103c1; _gat_gtag_UA_651909_6=1');

$response = curl_exec($ch);

curl_close($ch);

return $response;
}

Well Done mate.

Do you mind i re-write this script in python and send to you working or you need it PHP ?
 
Well Done mate.

Do you mind i re-write this script in python and send to you working or you need it PHP ?
Php please.
Because i am not sure we can use python in xtream ui

what do what exactly to do ?
Hi,
I want to get m3u8 url witch have session id.

Just session id of streams change in that site.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
You tested your script in browser?
Your script is returning an array, with a url.



what you want?
This array is not what i want.
Final stream comes with session id of the ch
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Curl > json decode > headerlocation
yes i know that.
but most important is to get correct data (m3u8 link with session id)

I think he never write this script just copy from somewhere and don’t have idea how to use or for what exactly it’s it 😂
there is no any sample script for this site anywhere in the web.

if you can not help (i am sure you dont know anything about php) , close your mouth PROFESSOR!
 
there is no any sample script for this site anywhere in the web.

if you can not help (i am sure you dont know anything about php) , close your mouth PROFESSOR!
Yes i can help but i dont think to do couse you are php guru and dont have idea how work your script which you "write" :ROFLMAO::ROFLMAO::ROFLMAO::ROFLMAO:
 
Yes i can help but i dont think to do couse you are php guru and dont have idea how work your script which you "write" :ROFLMAO::ROFLMAO::ROFLMAO::ROFLMAO:
do it if you know professor ...
i am sure you dont know what we are talking about.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
do it if you know professor ...
i am sure you dont know what we are talking about.
I'm not 100% clear what your after but your pretty much there.

To just display the link:
PHP:
<?php

#ini_set("display_errors", "1");
#ini_set("display_startup_errors", "1");
#error_reporting(E_ALL);

$url =
    "https://www.glwiz.com/Pages/Player/Ajax.aspx?action=getStreamURL&ClusterName=zixi-glwiz-box&RecType=4&itemName=IRIBChannel1&ScreenMode=0&prt=https://www.glwiz.com/Pages/Player/Player.aspx";

function glwiz($url)
{
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
    curl_setopt($ch, CURLOPT_HTTPHEADER, [
        "authority" => "www.glwiz.com",
        "accept" => "*/*",
        "accept-language" => "fi,en-US;q=0.9,en;q=0.8",
        "referer" =>
            "https://www.glwiz.com/Pages/Player/p2.html?t2=1675265014200",
        "sec-ch-ua" =>
            '"Not_A Brand";v="99", "Google Chrome";v="109", "Chromium";v="109"',
        "sec-ch-ua-mobile" => "?0",
        "sec-ch-ua-platform" => '"Windows"',
        "sec-fetch-dest" => "empty",
        "sec-fetch-mode" => "cors",
        "sec-fetch-site" => "same-origin",
        "user-agent" =>
            "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
        "x-requested-with" => "XMLHttpRequest",
        "Accept-Encoding" => "gzip",
    ]);
    curl_setopt(
        $ch,
        CURLOPT_COOKIE,
        "ASP.NET_SessionId=lulbyxc4mig54mvsl4xf15rf; __gads=ID=9a19f335364f72d5:T=1669630540:S=ALNI_MYvVsIxdhD7wehHR7huWR5MQHP4wQ; __auc=323cd1a1184bdbc878b76c03417; ISOCode=FA-EN; LanguageCode=EN; PackageCode=FA; SelectedLanguage=SecondLanguage; SelectedPackage=Farsi; _fbp=fb.1.1669630561951.605574382; _ga=GA1.2.434833227.1669630562; rememberMe=true; userEmail=uCGm0I4+obudBGYNi+1DPBbvfiVNMVuAYl8+msWcaXDNHgkPRhNWa2PRDLhufCe4; LoggedUser=KfT+E/dpQcyApxvNky6oX7b5ZA9OCI8h/aJU8w6Fs6w=; UserID=6clRq1sRN4WdmjKLRbAQQQ==; GLwizHostName=163.172.43.248; GLwizAutoLogin=true; GLwizUser=WB507109; _gid=GA1.2.1700301154.1675247668; __asc=5c0bc4931860d9268136d3103c1; _gat_gtag_UA_651909_6=1"
    );

    $response = curl_exec($ch);

    curl_close($ch);

    return $response;
}

$stream = json_decode(glwiz($url), true);

echo $stream["resp"];

?>
 
What about python script???
i am working on this but didnt get m3u8 file for response yet.

Python:
import requests

cookies = {
    'ASP.NET_SessionId': 'lulbyxc4mig54mvsl4xf15rf',
    '__gads': 'ID=9a19f335364f72d5:T=1669630540:S=ALNI_MYvVsIxdhD7wehHR7huWR5MQHP4wQ',
    '__auc': '323cd1a1184bdbc878b76c03417',
    'ISOCode': 'FA-EN',
    'LanguageCode': 'EN',
    'PackageCode': 'FA',
    'SelectedLanguage': 'SecondLanguage',
    'SelectedPackage': 'Farsi',
    '_fbp': 'fb.1.1669630561951.605574382',
    '_ga': 'GA1.2.434833227.1669630562',
    'rememberMe': 'true',
    'userEmail': 'uCGm0I4+obudBGYNi+1DPBbvfiVNMVuAYl8+msWcaXDNHgkPRhNWa2PRDLhufCe4',
    'LoggedUser': 'KfT+E/dpQcyApxvNky6oX7b5ZA9OCI8h/aJU8w6Fs6w=',
    'UserID': '6clRq1sRN4WdmjKLRbAQQQ==',
    'GLwizHostName': '163.172.43.248',
    'GLwizAutoLogin': 'true',
    'GLwizUser': 'WB507109',
    '_gid': 'GA1.2.1700301154.1675247668',
    '__asc': '5c0bc4931860d9268136d3103c1',
    '_gat_gtag_UA_651909_6': '1',
}

headers = {
    'authority': 'www.glwiz.com',
    'accept': '*/*',
    'accept-language': 'fi,en-US;q=0.9,en;q=0.8',
    'cookie': 'ASP.NET_SessionId=lulbyxc4mig54mvsl4xf15rf; __gads=ID=9a19f335364f72d5:T=1669630540:S=ALNI_MYvVsIxdhD7wehHR7huWR5MQHP4wQ; __auc=323cd1a1184bdbc878b76c03417; ISOCode=FA-EN; LanguageCode=EN; PackageCode=FA; SelectedLanguage=SecondLanguage; SelectedPackage=Farsi; _fbp=fb.1.1669630561951.605574382; _ga=GA1.2.434833227.1669630562; rememberMe=true; userEmail=uCGm0I4+obudBGYNi+1DPBbvfiVNMVuAYl8+msWcaXDNHgkPRhNWa2PRDLhufCe4; LoggedUser=KfT+E/dpQcyApxvNky6oX7b5ZA9OCI8h/aJU8w6Fs6w=; UserID=6clRq1sRN4WdmjKLRbAQQQ==; GLwizHostName=163.172.43.248; GLwizAutoLogin=true; GLwizUser=WB507109; _gid=GA1.2.1700301154.1675247668; __asc=5c0bc4931860d9268136d3103c1; _gat_gtag_UA_651909_6=1',
    'referer': 'https://www.glwiz.com/Pages/Player/p2.html?t2=1675265014200',
    'sec-ch-ua': '"Not_A Brand";v="99", "Google Chrome";v="109", "Chromium";v="109"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    'sec-fetch-dest': 'empty',
    'sec-fetch-mode': 'cors',
    'sec-fetch-site': 'same-origin',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36',
    'x-requested-with': 'XMLHttpRequest',
}

response = requests.get(
    'https://www.glwiz.com/Pages/Player/Ajax.aspx?action=getStreamURL&ClusterName=zixi-glwiz-box&RecType=4&itemName=IRIBChannel1&ScreenMode=0&prt=https%3A//www.glwiz.com/Pages/Player/Player.aspx',
    cookies=cookies,
    headers=headers,
)


print(str(response));
 
Hi Guys,
Can somebody help me to make php script for this website:

*** Hidden text: cannot be quoted. ***



i created this php script but it doesnt work yet:

PHP:
<?php

$url = 'https://www.glwiz.com/Pages/Player/Ajax.aspx?action=getStreamURL&ClusterName=zixi-glwiz-box&RecType=4&itemName=IRIBChannel1&ScreenMode=0&prt=https://www.glwiz.com/Pages/Player/Player.aspx';

#$stream = glwiz($url);

$stream=json_decode(glwiz($url),true);

print_r ($stream);



function glwiz($url){


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'authority' => 'www.glwiz.com',
    'accept' => '*/*',
    'accept-language' => 'fi,en-US;q=0.9,en;q=0.8',
    'referer' => 'https://www.glwiz.com/Pages/Player/p2.html?t2=1675265014200',
    'sec-ch-ua' => '"Not_A Brand";v="99", "Google Chrome";v="109", "Chromium";v="109"',
    'sec-ch-ua-mobile' => '?0',
    'sec-ch-ua-platform' => '"Windows"',
    'sec-fetch-dest' => 'empty',
    'sec-fetch-mode' => 'cors',
    'sec-fetch-site' => 'same-origin',
    'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36',
    'x-requested-with' => 'XMLHttpRequest',
    'Accept-Encoding' => 'gzip',
]);
curl_setopt($ch, CURLOPT_COOKIE, 'ASP.NET_SessionId=lulbyxc4mig54mvsl4xf15rf; __gads=ID=9a19f335364f72d5:T=1669630540:S=ALNI_MYvVsIxdhD7wehHR7huWR5MQHP4wQ; __auc=323cd1a1184bdbc878b76c03417; ISOCode=FA-EN; LanguageCode=EN; PackageCode=FA; SelectedLanguage=SecondLanguage; SelectedPackage=Farsi; _fbp=fb.1.1669630561951.605574382; _ga=GA1.2.434833227.1669630562; rememberMe=true; userEmail=uCGm0I4+obudBGYNi+1DPBbvfiVNMVuAYl8+msWcaXDNHgkPRhNWa2PRDLhufCe4; LoggedUser=KfT+E/dpQcyApxvNky6oX7b5ZA9OCI8h/aJU8w6Fs6w=; UserID=6clRq1sRN4WdmjKLRbAQQQ==; GLwizHostName=163.172.43.248; GLwizAutoLogin=true; GLwizUser=WB507109; _gid=GA1.2.1700301154.1675247668; __asc=5c0bc4931860d9268136d3103c1; _gat_gtag_UA_651909_6=1');

$response = curl_exec($ch);

curl_close($ch);

return $response;
}

Did you put it in ChatGPT and ask it to help?

Gracias
Oscar
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top