Reputation: 37
I try to passing text using shell_exec.
$message="I go to school";
shell_exec("nohup php -q sendmail.php $picture $message");
but I get only the one word of message when I user argv[2]. what the problem?
Upvotes: 0
Views: 298
Reputation: 4220
You must add " for text
shell_exec("nohup php -q sendmail.php $picture \"$message\"");
Upvotes: 4