当前位置:Gxlcms > PHP教程 > PHP的C扩展Yaf的实例

PHP的C扩展Yaf的实例

时间:2021-07-01 10:21:17 帮助过:34人阅读

采用鸟哥的PHP的C扩展Yaf的实例案例演示 开放源代码 见下方

[PHP]代码

  1. /**
  2. * 获得上传组件
  3. *
  4. * @access public
  5. * @return void
  6. */
  7. public function uploadAction() {
  8. $sid = 'AngryFox';
  9. /** $css参数,从 http://oapi.56.com/var/oupload/ 上获取你想要的显示效果 */
  10. $css = 'cDElM0RwMSUyNnAyJTNEcDIlMjZvbiUzRG9uJTI2b24lM0RvbiUyNm9uJTNEb24lMjZwbyUzRHBvJTI2bCUzRGNuJTI2YyUzRHAxMCUyNmklM0Qx';
  11. $rurl = $this->_domain .'/index/fail';
  12. $ourl = $this->_domain .'/index/success';
  13. $videos = new Open56Client("1000000010","0e4f13954bc537ec");
  14. $custom_upload = $videos->customUrl($sid, $css, $rurl, $ourl);
  15. $this->_view->entries = $custom_upload;
  16. /*layout*/
  17. $this->_layout->meta_title = '56网视频上传开放接口';
  18. }

222.JPG

  1. imgs/asCode/27143528_QF2U.jpg

bbbbb.jpg

  1. imgs/asCode/27143528_wzgB.jpg

js.jpg

  1. imgs/asCode/27143705_vJ2D.jpg
PHP, Yaf

人气教程排行