Below is the same path of PHP file and the exe file of PHP, that we put in the task directly in the above section.Į:\xampp\php56\php.exe E:\xampp\htdocs\chkcron\cron.php Open a text editor and create a new file.If you don’t want to put a PHP file name directly in the task, it is better to create a batch file and put it into a task.Please refer to the screenshot shown below.Add the name of the php file in ‘ Add Arguments’.In my case it is ‘E:\xampp\htdocs\chkcron\’. In ‘ Start in(Optional)’ write the absolute path of the folder, where you have saved php file.In my case it is ‘E:\xampp\php56\php.exe’. Now browse the path of php.exe in your pc in ‘ Program/script’.If we want to edit existing action, select it and click on the ‘ Edit’ button. Click on the ‘ Actions’ tab and click on the ‘ New’ button inside it.If we make a mistake here, the task scheduler will run the job task perfectly but your php script will not be running. As default values are okay to run the script properly on desired time and frequency, I have continued with all default settings of ‘conditions’ and ‘settings’.You can set expiry date in ‘ Expire’ after checking checkbox in front of it.If the script goes in an indefinite loop or a similar situation due to any reason, the task will be terminated automatically after the day/time defined in this option. Check the checkbox ‘ Stop the task if it runs longer than’.Check the checkbox in front of ‘ repeat task every’, so that we can select the frequency of execution.This is the date and time exactly when the execution of job will start. In front of ‘ Start’, we can see a date and time. One time, daily, weekly, monthly options we can see here.Here we can select the desired date-time and frequency to run this script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |