Problem with backticked curl command


#1

When this code runs in my php file…

[php]curl https://MYSITE.com/process_emails.php?url={$full_site_url}&domain={$domain}&site={$site_title}&title={$title}&permalink={$permalink};[/php]

This is all that is sent to the shell:

[php]https://MYSITE.COM/process_emails.php?url={$full_site_url}[/php]

What am I doing wrong in building the command??


#2

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.