Problem with backticked curl command


When this code runs in my php file…


This is all that is sent to the shell:


What am I doing wrong in building the command??


Revised the command string by enclosing in double quotes… The shell was interpreting the & literally and ending the command at the first &. Double quoting the entire command string fixed it.