Running Php Cron on Windows XAMPP

Well, I'm new to the term CRON

. What I know about it is the concept Unix

for scheduling a specific operation to be performed at a specific time interval.

I need to run a file php

to update the database once an hour. But my confusion lies in the planning of the execution. I am using XAMPP

for a local development test on Windows 7.

What I found:

In all the links above, they say to set up a job CRON

at the Linux shell level. Likewise, cron is at the OS level and not at the application level program.

If so how can I create a cron in php on shared hosting? If I don't have command line access, I can't create a cron job for php.?

If not, how?

Throughout the above example, I found one similar code:

0 * * * *     cd C:/xampp/htdocs/plugins/moviefeed/ && php cron.php

      

What is this *

for?

+2


source to share


1 answer


Obviously you are installing clones at the OS level, not at the application level. Although, as with Unix / Linux, you can also install CRON on Windows platform using Task Schedular ( All Programs->Accessories->System Tools -> Task Schedular )

. I think you should go for VPN or dedicated servers to install clones as they need to access system resources privately.

Apart from this, the syntax for Crontab command

(unix / linux) is as follows:



1 2 3 4 5 /root/backup.sh
1: Minute (0-59)
2: Hours (0-23)
3: Day (0-31)
4: Month (0-12 [12 == December])
5: Day of the week(0-7 [7 or 0 == sunday])
/path/to/command - Script or command name to schedule

      

+2


source







All Articles