Jump to content

Badchip

Members
  • Content count

    23
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Badchip

  • Rank
    Newbie
  1. Show php filename instead stream url?

    So I need 2 PHP's for that? please, can you show me an example?
  2. Show php filename instead stream url?

    I would prefer via php instead .htaccess
  3. Show php filename instead stream url?

    Exactly.
  4. Show php filename instead stream url?

    I'd like to open a php called "stream.php" and maintain the same url name when it's open (instead "http://www.site.com/stream.m3u8"). <?php header("Location: http://www.site.com/stream.m3u8"); ?> What do I have to change? Thank you in advance.
  5. Date time not working...

    Can you give me a hand with the code? I need to open a stream between sunday 9:55PM and monday 1:30AM. I have solved the problem with 2 PHP's but I think it's not the best way.
  6. Date time not working...

    It works within the same day (for example, Sunday to Sunday)... but it does not work with different days (Sunday 9:55PM to Monday 1:30AM).
  7. Date time not working...

    Something like this? (stills opening only the url1.php) date_default_timezone_set('Europe/Madrid'); $dtA = new DateTime('sunday 9:55PM'); $dtB = new DateTime('monday 1:00AM'); if ($dtA->getTimestamp() > $dtB->getTimestamp()) { header("Location: url1.php"); } else { header("Location: url2.php"); }
  8. Date time not working...

    How do I apply it? I have tried two ways but I get an http error 500: $dtA->getTimestamp('sunday 9:55PM') > $dtB->getTimestamp('monday 1:00AM'); if ($dtA > $dtB) { header("Location: url1.php"); } else { header("Location: url2.php"); } if ($dtA->getTimestamp('sunday 9:55PM') > $dtB->getTimestamp('monday 1:00AM')) { header("Location: url1.php"); } else { header("Location: url2.php"); } Thank you for your patience.
  9. Date time not working...

    I'm trying to set a PHP in order to select another PHP between sunday and monday: date_default_timezone_set('Europe/Madrid'); $dtA = new DateTime('sunday 9:55PM'); $dtB = new DateTime('monday 1:00AM'); if ($dtA > $dtB) { header("Location: url1.php"); } else { header("Location: url2.php"); } It always send me to the url1.php. What am I doing wrong? Thank you in advance.
  10. How to extract the URL from this URL (via PHP)

    I found the solution here https://stackoverflow.com/questions/9020592/how-to-get-the-url-of-a-download-link
  11. How to extract the URL from this URL (via PHP)

    I want to copy the code after ".m3u8?" in order to use it with another stream. ?hdnea=st=1510277838~exp=151027.................. Is it possible?
  12. How to extract the URL from this URL (via PHP)

    I just want the URL of the stream (http://stream.m3u8...") when you click http://link.theplatform.com/s/pf1NfC/9buCiIMqXE9z
  13. How to extract the URL from this URL (via PHP)

    I tried with: <?php echo file_get_contents("http://link.theplatform.com/s/pf1NfC/9buCiIMqXE9z"); ?> but I obtain the contain of the stream, not the URL: #EXTM3U #EXT-X-VERSION:3 #EXT-X-INDEPENDENT-SEGMENTS #EXT-X-STREAM-INF:BANDWIDTH=1100000,AVERAGE-BANDWIDTH=1100000,CODECS="avc1.77.30,mp4a.40.2",RESOLUTION=768x430,FRAME-RATE=29.970 master1000k.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=2420000,AVERAGE-BANDWIDTH=2420000,CODECS="avc1.4d401f,mp4a.40.2",RESOLUTION=1280x720,FRAME-RATE=29.970 master2500k.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=550000,AVERAGE-BANDWIDTH=550000,CODECS="avc1.4d4015,mp4a.40.2",RESOLUTION=480x270,FRAME-RATE=29.970 master500k.m3u8 I just need the second URL than opens http://link.theplatform.com/s/pf1NfC/9buCiIMqXE9z
  14. This URL opens a ".m3u8" stream: http://link.theplatform.com/s/pf1NfC/9buCiIMqXE9z I'd like to extract the URL (via PHP) Thank you in advance.
  15. Remove all HTTP's via PHP...

    So can I open the same "index.html" via PHP without the higlighted part? Would it be too much to ask an example?
×