app/controllers/test_controler_php $user=$this->Auth->user(); $username=$user['User']['username']; $cmdhive=CommonComponent::CmdHive($username); $cmd=CMD_PHP . " " . /var/www/html/WebHive/app/modules/hive_request_gzip.php . " $u_userid $u_id"; $this->log("CMD=$cmd",LOG_DEBUG); exec("$cmd > /dev/null 2>&1 &",$result,$retval); $this->log("CMD=$cmd => $retval",LOG_DEBUG); $this->set("result" , array("result" => "ok", "id" => "$u_id"));
このコードにより
hive_request_gzip.phpが動くクエリが書かれてると思うのですが
hive_request_gzip.phpに引数として$cmdhiveを渡すにはどうしてあげればいいでしょうか?
教えてください。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/11/18 05:59
2016/11/18 06:12
2016/11/18 06:14