using php script in task scheduler on window 7
INDEX.PHP
<?php
include "config.php";
$i=1;
$r=mysql_query(" INSERT INTO test1 (score) VALUES ('$i'); ") or die("not done");
?>
I am trying to use cron job in window 7 . I have written a php script in which I am inserting the$i
values . Using a task scheduler , I have created a task in which after 1 Min$i
value is going to insert
In the actions column of task scheduler , I am using this path
C:\xampp\php\php.exe -f C:\xampp\htdocs\corn\index.php
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 ??