Example of PHP's C extension Yaf

WBOY
Release: 2016-07-25 08:42:12
Original
1564 people have browsed it

An example case demonstration using Niao Ge’s PHP C extension Yaf. Open source code is shown below

[PHP] code

  1. /**
  2. * Get the upload component
  3. *
  4. * @access public
  5. * @return void
  6. */
  7. public function uploadAction() {
  8. $sid = 'AngryFox';
  9. /**$css parameter, get the display effect you want from http://oapi.56.com/var/oupload/*/
  10. $css = 'cDElM0RwMSUyNnAyJTNEcDIlMjZvbiUzRG9uJTI2b24lM0RvbiUyNm 9uJTNEb24lMjZwbyUzRHBvJTI2bCUzRGNuJTI2YyUzRHAxMCUyNmklM0Qx';
  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 network video upload open interface';
  18. }
Copy code

222.JPG

  1. imgs/asCode/27143528_QF2U.jpg
Copy code

bbbbb.jpg

  1. imgs/asCode/27143528_wzgB.jpg
Copy code

js.jpg

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


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template