采用鸟哥的PHP的C扩展Yaf的实例案例演示 开放源代码 见下方
[PHP]代码
- /**
- * 获得上传组件
- *
- * @access public
- * @return void
- */
- public function uploadAction() {
- $sid = 'AngryFox';
- /** $css参数,从 http://oapi.56.com/var/oupload/ 上获取你想要的显示效果 */
- $css = 'cDElM0RwMSUyNnAyJTNEcDIlMjZvbiUzRG9uJTI2b24lM0RvbiUyNm9uJTNEb24lMjZwbyUzRHBvJTI2bCUzRGNuJTI2YyUzRHAxMCUyNmklM0Qx';
- $rurl = $this->_domain .'/index/fail';
- $ourl = $this->_domain .'/index/success';
- $videos = new Open56Client("1000000010","0e4f13954bc537ec");
- $custom_upload = $videos->customUrl($sid, $css, $rurl, $ourl);
- $this->_view->entries = $custom_upload;
- /*layout*/
- $this->_layout->meta_title = '56网视频上传开放接口';
- }
222.JPG
- imgs/asCode/27143528_QF2U.jpg
bbbbb.jpg
- imgs/asCode/27143528_wzgB.jpg
js.jpg
- imgs/asCode/27143705_vJ2D.jpg
|