I need to run a PHP script at the scheduled time daily to update some fields in database. How I can do this?
I tried with windows scheduler and it not running the script I cant figure our the error.
Is there any tutorial or steps which helps to understand the working, so as to configure.
My Bat File:
H:\wamp\bin\php\php5.5.12\php.exe H:\wamp\www\file\file.php
Test PHP Script:
<?php
$myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
$txt = "John Doe\n";
fwrite($myfile, $txt);
$txt = "Jane Doe\n";
fwrite($myfile, $txt);
fclose($myfile);
?>