JacobHsu
11/19/2014 - 7:02 AM

#PHP #CI codeingter exe

#PHP #CI codeingter exe

<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once(APPPATH.'libraries/REST_Controller.php');

class Wget extends REST_Controller {
    /**
     * 影片下載api
     * @access  public
     */
    function index_post()
    {
        //echo "Hello world";
         //print_r($this->post());

        $command = 'C:\xampp\htdocs\CodeIgniter\application\controllers\backend_api\wget.exe --no-check-certificat http://files/e1ded0f0-6fb4-11e4-854f-9b3741cf3705-360p.mp4 -O C:\xampp\htdocs\CodeIgniter\application\controllers\backend_api\9b3741cf3705-360p.mp4';
        echo $command ;
        exec($command);
  
    }
    
    function __construct()
    {
        parent::__construct();

    }
    

}