title: using php script in task scheduler on window 7
body: <p><strong>INDEX.PHP</strong></p>
  
  <pre><code>&lt;?php
  include "config.php";
  $i=1;
  $r=mysql_query(" INSERT INTO test1 (score) VALUES ('$i'); ") or die("not done");
  ?&gt;
  </code></pre>
  
  <p>I am trying to use <strong>cron job</strong> in <strong>window 7</strong> . I have written a php script in which I am inserting the <code>$i</code> values . Using a <strong>task scheduler</strong> , I have created a task in which after 1 Min <code>$i</code>  value is going to insert </p>
  
  <p>In the <strong>actions</strong> column of <strong>task scheduler</strong> , I am using this path  </p>
  
  <blockquote>
    <p>C:\xampp\php\php.exe -f C:\xampp\htdocs\corn\index.php</p>
  </blockquote>
  
  <p>but when I run this task , a command prompt type window open ie taskeng.exe and it closes after few seconds but my database shows no changes ie no value is inserting . please can anybody tell me what I am doing wrong ??</p>