Passing multiple PHP variables to shell_exec()?

I am calling from PHP using shell_exec method. $my_url=""; $my_refer=""; $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