0

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?

1 Answer 1

4

You must add " for text

shell_exec("nohup php -q sendmail.php $picture \"$message\"");
Sign up to request clarification or add additional context in comments.

1 Comment

It is hard to believe ;) Show me your code after changes, make sure you are running proper script and show code how you get this data

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.