2017-03-20 56 views

回答

0

您可以使用PDO和bindParam

示例代碼:

$yourCmdOutput = `path/to/your/cmd --some-args`; 

$pdo = new PDO("your configuration"); 
$cmd = $pdo->prepare("INSERT ... VALUES (?)"); 
$cmd->bindParam(1, $yourCmdOutput); 
$cmd->execute(); 
相關問題