Cron Jobs

What are Cron Jobs?
Cron jobs are automated tasks. On Windows servers it is the Task Scheduler. There are two files in Maian Greetings that should be set up to run as cron jobs. These are detailed below.
1 System Ops
This performs the following operations:

- Deletes sent ecards that are older than limit set in settings

- Deletes none picked up ecards that are older than limit set in settings

- Reactivates ecards system if disabled in settings

- Sends ecards set to be set a future date. Per run send limit can be changed in settings

- Deletes unused user uploaded images if time limit is set in settings

The file to run is:

control/cron/ops.php

You should set this cron to run once a day. For security, this file can be renamed.
Cron Job Example Commands
Examples of cron tab commands. These may or may not work, you should contact your host if you aren't sure. Make sure you use the correct paths to the files shown above. Here an example file is shown (xx.php).

Linux

/usr/local/bin/php /home/admin/domains/example.com/public_html/ecards/control/cron/xx.php
php q /home/admin/domains/example.com/public_html/ecards/control/cron/xx.php
/usr/local/bin/php q /home/admin/domains/example.com/public_html/ecards/control/cron/xx.php

Windows

C:\Windows\php\php.exe "C:\server\www\ecards\control\cron\xx.php"
If you don't understand this, contact your host for assistance. Path is almost always the FULL server path to the cron file.