title: How do I execute a php file on the server using the screen command?
body: <p>I was looking at this post which is where I got the idea to use screens to execute my php scripts on the server:
  <a href="https://stackoverflow.com/questions/11200178/running-a-php-script-completely-on-server-side">Running a PHP script completely on server side</a></p>
  
  <p>I was successfully able to execute a php script using:</p>
  
  <p><code>screen</code></p>
  
  <p><code>php ./file.php</code></p>
  
  <p>However, this did not work for me:</p>
  
  <p><code>screen ./file.php</code> </p>
  
  <p>And it was that last way of doing it that was recommended in that post I linked.</p>
  
  <p>All it says is: <code>Cannot exec './file.php': Permission Denied</code></p>
  
  <p><code>sudo screen ./file.php</code> did not work either.</p>