title: PHP exec() Output Cut Short
body: <p>I have a PHP file that runs a node script using exec() to gather the output, like so:</p>
  
  <pre><code>$test = exec("/usr/local/bin/node /home/user/www/bin/start.js --url=https://www.example.com/");
  echo $test;
  </code></pre>
  
  <p>It outputs a JSON string of data tied to the website in the --url paramater. It works great, but sometimes the output string is cut short.</p>
  
  <p>When I run the command in the exec() script directly, I get the full output, as expected.</p>
  
  <p>Why would this be? I've also tried running shell_exec() instead, but the same things happens with the output being cut short.</p>
  
  <p>Is there a setting in php.ini or somewhere else to increase the size of output strings?</p>