Jump to content

dwest100

Members
  • Posts

    14
  • Joined

  • Last visited

Community Answers

  1. dwest100's post in Debug_backtrace notice-what’s causing it in my code? was marked as the answer   
    Thanks much! I will do that 🙂
  2. dwest100's post in Trouble with variable insertion in backticked curl command was marked as the answer   
    Good answer! After much searching and sifting on Google this works very simply:
     

    `curl "MY_WEBSITE.com/process_emails.php?url={$full_site_url}&domain={$domain}&site={$site_title}&title={$title}&permalink={$permalink}"`; Enclose entire php command string in backticks —same as typing shell_exec(command string)— 
    Enclose entire argument to curl command in double quotes so the shell interprets the ENTIRE command.
     
    Enclose variables in
    {} instead of concatenating. Simpler and easier to read. 
    The shell was halting the command after the first
    & because that's what the & does in the linux shell.With the entire string interpreted, it works properly and all 5000 emails are processed outside of my Wordpress site through Amazon SES all nice and tidy and properly authorized with DKIM, SPF and encryption.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.