title: How to run background php process on MAMP?
body: <p>I'm trying to trigger a background php process on MAMP with this code:</p>
  
  <pre><code>exec("php /Users/Joe/sandbox/getnew.php?artist=".$artistID." &gt; error_log &amp;");
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>shell_exec("nohup /usr/bin/php /Users/Joe/sandbox/getnew.php?artist=".$artistID." &gt; error_log &amp;");
  </code></pre>
  
  <p>It doesn't seem to trigger even with the direct path to the php file? When it is triggered it will collect some information from an API and write it to a database.</p>