3 Replies - 254 Views - Last Post: 07 January 2019 - 03:02 PM Rate Topic: -----

#1 tekzen   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 06-January 19

Spend M3U8 as .PHP?

Posted 06 January 2019 - 11:06 AM

Hello,

on the following page I saw that a .php address converts a playlist to the m3u8 list.
The streams they contain all end with .php and obfuscate the actual addresses.

The output stream looks like this:

Example:

http://umutiptv.cf/acun.php?kanal=tv8


Source to the addresses: Code:

Code:

http://umutiptv.cf/kanal_listesi.php


I have tried to create a .php and to integrate my streams into this one, unfortunately, again and again as .m3u8 and with the original addresses.

In my .php file it looks like this

echo "#EXTINF: -1, TRT1 HD \ n"; echo "https://trtcanlitv-lh.akamaihd.net/i/[email protected]/master.m3u8"; echo "\ n";


how do I get this rewritten so that it is displayed as .php, e.g. TRT1.php


I know there are 2 different addresses Finally, it's about a. M3u8 address when output as .php output and thus protect the original address.

Is This A Good Question/Topic? 0
  • +

Replies To: Spend M3U8 as .PHP?

#2 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2241
  • View blog
  • Posts: 6,792
  • Joined: 15-January 14

Re: Spend M3U8 as .PHP?

Posted 07 January 2019 - 10:55 AM

If you want to print the contents of that file instead of just printing the URL, use something like file_get_contents.

Also, if you want to print a newline character instead of "\ n", remove the space.
Was This Post Helpful? 0
  • +
  • -

#3 tekzen   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 06-January 19

Re: Spend M3U8 as .PHP?

Posted 07 January 2019 - 12:59 PM

View PostArtificialSoldier, on 07 January 2019 - 10:55 AM, said:

If you want to print the contents of that file instead of just printing the URL, use something like file_get_contents.

Also, if you want to print a newline character instead of "\ n", remove the space.



I think I could not express myself well.

How can I enter this page
http://umutiptv.cf/acun.php?kanal=tv8
as m3u8 in my m3u playlist.

When I call the page I only see the ending. Php but not m3u8.
Was This Post Helpful? 0
  • +
  • -

#4 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2241
  • View blog
  • Posts: 6,792
  • Joined: 15-January 14

Re: Spend M3U8 as .PHP?

Posted 07 January 2019 - 03:02 PM

If you have some sort of software that requires a .m3u8 file, then obviously another file type will not work. If it doesn't look at the extension, but looks at the actual content of the file, then it shouldn't matter what the filename is.

Either way, the code you posted above is going to print exactly this text, which is probably not what you need:

#EXTINF: -1, TRT1 HD \ nhttps://trtcanlitv-lh.akamaihd.net/i/[email protected]/master.m3u8\ n

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1