Passing multiple PHP variables to shell_exec()?

I am calling test.sh from PHP using shell_exec method. $my_url="http://www.somesite.com/"; $my_refer="http://www.somesite.com/"; $page = shell_exec('/tmp/my_script.php $my_url $my_refer'); However, the command line script says it only received 1 argument: the /tmp/my_script.php When i change the call to: Code: $page = shell_exec('/tmp/my_script.php {$my_url} {$my_refer}'); It says it received 3 arguments but the argv[1] and argv[2] are empty. When … Read more