mohamedismail — 2013-10-11T05:31:57-04:00 — #1
How can I set a cron and how can I execute it in Unix, Linux, and windows?
patche — 2013-10-11T05:34:23-04:00 — #2
then enter your cron in that file. Write it and save it and the cron will automatically run.
michael_morris1 — 2013-10-11T16:09:56-04:00 — #3
As a security precaution, do not put your cron PHP files in a directory that can be browsed to by the webserver. You can test them by calling PHP from the command line.. php scriptname.php. For more information on using PHP from the command line look here: http://php.net/manual/en/features.commandline.php
Also, keep in mind php command line tasks do not have a time limit enforced on them. This is a good thing if the task needs time, but it does mean they can hang more easily.