ting.php 706 B

123456789101112131415161718
  1. <?php
  2. error_reporting(0);
  3. define('SELF', pathinfo(preg_replace("@\\(.*\\(.*\$@", "", __FILE__), PATHINFO_BASENAME));
  4. define('FCPATH', str_replace('\\', DIRECTORY_SEPARATOR, dirname(preg_replace("@\\(.*\\(.*\$@", "", __FILE__)) . DIRECTORY_SEPARATOR));
  5. require_once(FCPATH . 'libraries/config.php');
  6. $url = "http://" . Web_Url . Web_Path . "index.php/ting/transcode";
  7. $did = file_get_contents($url);
  8. echo $did . "<br>";
  9. if( 0 < (int) $did )
  10. {
  11. $zmurl = "http://" . Web_Domain . Web_Path . "index.php/video/transcode?id=" . $did;
  12. $context = stream_context_create(array( "http" => array( "method" => "GET", "timeout" => 3 ) ));
  13. echo file_get_contents($zmurl, 0, $context);
  14. }