title: Windows Task Scheduler does not execute php code in bat
body: <p>I have set an Task in the Windows Task Scheduler for every 1 minute. This Task call an <code>bat</code> file with:</p>
  
  <pre><code>php "create.php"
  </code></pre>
  
  <p>The <code>bat</code> file and the <code>create.php</code> file are in the same folder. If i run the <code>bat</code> manuelly, it works. But if the Task Scheduler run this <code>bat</code>, my PHP code is not executed (but i see for an half second the CMD open).</p>
  
  <p>This is my php script in the <code>create.php</code>:</p>
  
  <pre><code>$data = file_get_contents('data.txt');
  
  file_put_contents('data.txt', $data. "\n", FILE_APPEND);
  </code></pre>
  
  <p>The <code>data.txt</code> file has write access.</p>
  
  <p>// Edit:</p>
  
  <p>I set an <code>PAUSE</code> in my script. Error says: <code>could not open input file: create.php</code></p>