خرید بک لینک

Vote count: 0

I'm Trying to get Playback URLs from player and i made this code please any one can help me about this its code ok or any other better Instead this code Here is my code:

$url = 'http://www.dailymotion.com/embed/video/x2g61zo';
$data = file_get_contents($url);
$tst = explode('qualities',$data );
$tss = $tst[1];
header('Content-Type: application/json');
//echo $tss;
$tsttt = explode(',',$tss);
$gets1 = $tsttt[3];
$gets2 = $tsttt[5];
$gets3 = $tsttt[7];
$gets4 = $tsttt[9];
echo substr($gets1,7, -3),"n"; // 240
echo substr($gets2,7, -3),"n"; // 380
echo substr($gets3,7, -3),"n"; // 480
echo substr($gets4,7, -4); // 720

its work ok but i'm not satisfied its code is fine because i'm student and i have not more skills about PHP.

Thanks in Advance

asked 45 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 24 فروردين 1395 ساعت: 16:02

صفحه بندی