farooq shaik
farooq shaik

Reputation: 69

google clound php engine exec not working

i have a code that use php exec command the code is something like this

<?php



    include_once 'retrieve_remote_file_size.php';
    $url=$_GET["name"];
    $q=$_GET["qu"];
       $url='http://www.youtube.com/watch?v='.$url;
        $result = array();
        $status;
     $url = 'http://www.youtube.com/watch?v=rClUpezLmrY';


         $string = 'python youtube-dl -g '.$url;
        //echo $string;
        $string2 = 'python youtube-dl --help';
        exec($string, $result, $status);
       // echo json_encode(array('status' => $status, 'url_orginal'=>$url, 'url' => $result, 'command' => $string));
         $urlf = json_encode(array( ''=> $result));
         $urlf = str_replace('{"":["','',$urlf);
         $urlf = str_replace('"]}','',$urlf);
         $urlf = str_replace('\/','/',$urlf);
         echo $urlf;
        // header("Location: $urlf");

// echo some dynamically generated content here



?>

it work fine and gives desired out put in local app engine instance acessed by localhost:8080

and it wont work when i deploy it my app is deployed here. http://getvidfar.appspot.com/?name=lztV9TL_nJo it wont work . is it with exec in php could you help me out

Upvotes: 2

Views: 427

Answers (1)

Jerodev
Jerodev

Reputation: 33196

The documentation of the Google appengine states that this function is permanently disabled.

Upvotes: 3

Related Questions