An example case demonstration using Niao Ge’s PHP C extension Yaf. Open source code is shown below
[PHP] code
- /**
- * Get the upload component
- *
- * @access public
- * @return void
- */
- public function uploadAction() {
-
- $sid = 'AngryFox';
- /**$css parameter, get the display effect you want from http://oapi.56.com/var/oupload/*/
- $css = 'cDElM0RwMSUyNnAyJTNEcDIlMjZvbiUzRG9uJTI2b24lM0RvbiUyNm 9uJTNEb24lMjZwbyUzRHBvJTI2bCUzRGNuJTI2YyUzRHAxMCUyNmklM0Qx';
- $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 network video upload open interface';
- }
Copy code
222.JPG
- imgs/asCode/27143528_QF2U.jpg
Copy code
bbbbb.jpg
- imgs/asCode/27143528_wzgB.jpg
Copy code
js.jpg
- imgs/asCode/27143705_vJ2D.jpg
Copy code
|