Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

Request Update Stream Source and Name Problem - SQL and PHP - Xtream Codes

dix

Basic Member
Basic Member
Banned
Joined
Sep 24, 2019
Messages
53
Reaction score
169
Points
44
Location
Rusia
Hello friends, how are you?

I made a short php script to update streams and source names on sql for XC, the problem which i have discovered is that the changes that i have made do not appear on the moment when i update the information. If you try to see the changes in the api system, you would not see it, also if you restart the stream using the api. After passes more or less 20 minutes, you can see the changes.

I suppose that this happens because restarting streams with the api is the incorrect way to do it. I remember when Xtream Codes was working, if you updated the stream information, the panel asked you to restart the stream to see the changes on the servers, perhaps the Xtream Codes panel was using another way to refresh the streams.

Does anyone know how to restart or update the stream information correctly?

My code:
PHP:
  $sql = "UPDATE streams
SET stream_source = 'new url of the stream'
WHERE id = 6;";


if ($link->query($sql) === TRUE) {
    echo "Record updated successfully";
} else {
    echo "Error updating record: " . $link->error;
}
 
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock