Crontab needs the full path on your server.
0 0 * * * php /var/www/vhosts/domain.com/httpdocs/scripts/example.php
This will execute every day at midnight.
More Related Contents:
- Using crontab to execute script every hour for 24 hours
- How to create cron job using PHP?
- PHP: running scheduled jobs (cron jobs)
- Execute PHP script in cron job
- How to Automatically Start a Download in PHP?
- Run a PHP file in a cron job using CPanel
- Is there a PHP equivalent of Perl’s WWW::Mechanize?
- Use php to set cron jobs in Windows
- Run a mySQL query as a cron job?
- How to send emails via cron job usng PHP mysql
- Relative path not working in cron PHP script
- Does php execution stop after a user leaves the page?
- Run Cron Job on PHP Script, on localhost in Windows
- How to delete mysql row after time passes?
- Validating Crontab Entries with PHP
- Permission denied with bash.sh to run cron
- How to run a cronjob every X minutes?
- How to set cron job URL for CodeIgniter?
- Using WGET to run a cronjob PHP
- Run a PHP script every second using CLI
- How can I set cron job through PHP script
- Call another PHP script and return control to user before the other script completes
- How to prevent the cron job execution, if it is already running
- CRON command to run URL address every 5 minutes
- Can PHP detect if its run from a cron job or from the command line?
- Best way to periodically execute a PHP script?
- Cron Dispatcher CakePHP 2.0
- Bash script to run php script
- Programmatically building htpasswd
- Laravel 5.2: The Process class relies on proc_open, which is not available on your PHP installation