title: PHP is not creating Text File when executed using a Cron
body: <p>I have created a php file that fetches some data from a mysql database and save it in a text file. I am using Windows 7 and Xampp. I have created a batch file and entered the following code so that it can be executed at regular intervals. </p>
  
  <pre><code>C:\xampp\php\php.exe -f C:\xampp\htdocs\test\fetch.php
  </code></pre>
  
  <p>I am using Z-Cron for running the task at regular intervals. Now the problem is that whenever the batch file is executed through this software or Windows Task Scheduler, no text file is created and if I run the batch file manually the text file is created without any problems.</p>
  
  <p>How can I fix it ?</p>