using php script in task scheduler on window 7



include "config.php";
$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 ??

People are also looking for solutions to the problem: php - regular expression to extract foo, bar, baz and logical operator


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.