我尝试使用shell_exec传递文本。
$message="I go to school";
shell_exec("nohup php -q sendmail.php $picture $message");
,但是当我使用argv[2]时,我只得到一个单词的消息。有什么问题吗?
必须添加" for text
shell_exec("nohup php -q sendmail.php $picture '"$message'"");
我尝试使用shell_exec传递文本。
$message="I go to school";
shell_exec("nohup php -q sendmail.php $picture $message");
,但是当我使用argv[2]时,我只得到一个单词的消息。有什么问题吗?
必须添加" for text
shell_exec("nohup php -q sendmail.php $picture '"$message'"");