title: System Call on PHP
body: <p>Having a bit of problem with this. 
  Script A calls/includes Script B. Script B has to execute a system call and return to Script A. Fails in flames.
  When I call Script B on its own, it works just fine, I cannot for the life of me get it to work by calling it on A. Ive already tried</p>
  
  <ul>
  <li>Including it on A</li>
  <li>Calling it with another system call within A</li>
  <li>Making a bash script that calls B and then calling that bash script with A (I N C E P T I O N)</li>
  </ul>
  
  <p>What are my options here?</p>
  
  <p>Edit for code:</p>
  
  <pre><code>&lt;?php
  //B.php
  //works fine when called on its own
  function readsite ($url)
  {
        $output=system("curl -ks $url");
        return $output;
  }
  ?&gt;
  
  
  &lt;?php
  //A.php
  include_once("B.php");
  $url="www.google.com";
  $read=readsite($url);
  echo $read;
  ?&gt;
  </code></pre>