title: Executing shell script from php opens the file on Windows (Xampp)
body: <p><br>
  I'm trying to run a script from my PHP file. When I run the script, it just opens my notepad instead of executing the file.<br>
  I have given my folder read and write permissions, tried to run via SSH (because I work with Vagrant) and via cmd. But nothing seems to work. I think my code is correct, which you can find bellow: <br></p>
  
  <pre><code>$output = shell_exec(getcwd()."/scripts/row.sh 2&gt;&amp;1");
  </code></pre>
  
  <p>Someone who can help me out?</p>