0
我嘗試使用shell_exec傳遞文本。使用shell_exec傳遞文本變量
$message="I go to school";
shell_exec("nohup php -q sendmail.php $picture $message");
但是當我用戶argv [2]時,我只得到了一條消息。 有什麼問題?
我嘗試使用shell_exec傳遞文本。使用shell_exec傳遞文本變量
$message="I go to school";
shell_exec("nohup php -q sendmail.php $picture $message");
但是當我用戶argv [2]時,我只得到了一條消息。 有什麼問題?
您必須添加「文本
shell_exec("nohup php -q sendmail.php $picture \"$message\"");
呀,工作謝謝 – user2540615
這是很難相信;!)讓我看看更改後的代碼,請確保您正在運行適當的腳本並顯示代碼,你怎麼弄這個數據 – nospor
謝謝,我更新我的回覆 – user2540615