Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn about php to obtain video information and support multiple websites.
The usage is as follows:
/**
* Parse video information
*
* Supports Youku and Tudou cool 6 56 Sina qq podcasts letv
**/
$ All ['url'] = 'parse ';
$ All ['youku'] = 'youku ';
$ All ['tuu'] = 'tuu ';
$ All ['ku6'] = 'ku6 ';
$ All ['56'] = '_ 56 ';
$ All ['sina '] = 'sina ';
$ All ['qq'] = 'qq ';
$ All ['lettv '] = 'lettv ';
$ All ['sohu '] = 'sohu ';
$ Value = empty ($ _ GET ['value'])? '': (String) $ _ GET ['value'];
$ Type = empty ($ _ GET ['type']) |! Is_string ($ _ GET ['type']) | empty ($ all [$ _ GET ['type'])? 'Url': $ _ GET ['type'];
?>
PHP parses video information
$ Select ='';Foreach ($ all as $ k => $ v ){$ Selected = $ type = $ k? 'Selected = "selected "':'';$ Select. =''. $ K .'';}$ Select. ='';
Echo '';
If (! $ Value ){
Die;
}
$ Class_video = new class_video;
Echo'
';
echo "\n\n\n";
print_r( call_user_func_array( array( $class_video, $all[$type] ), array( $value ) ) );
echo "\n\n\n";
?>
Source: http://www.chunci.cn/php-for-video-information-support-multiple-web-sitesVideo.rar (6.29 KB download: 171 times)
AD: truly free, domain name + VM + enterprise mailbox = 0 RMB