title: Execute php file from another php
body: <p>I want to call a PHP file that starts like</p>
  
  <pre><code>&lt;?php
  function connection () {
     //Statements
  }
  </code></pre>
  
  <p>I call from the PHP like this:</p>
  
  <pre><code>&lt;?php
  exec ('/opt/lampp/htdocs/stuff/name.php');
  ?&gt;
  </code></pre>
  
  <p>I get: </p>
  
  <pre><code>line1-&gt; cannot open ?: No such file
  line 3 //Connection: not found
  line 4 Syntax errror: "("
  </code></pre>
  
  <p>Why doesn't this correctly execute the name.php file?</p>