To execute a PHP script every 24 hours, you can use @daily or 0 0 * * * followed by the location of the PHP binary executable, the -q flag, and the path of the .php file:
0 0 * * * /usr/bin/php -q script_directory/cron.php
More Related Contents:
- Using PHP data in MySQL [closed]
- Checking the availability of rooms
- What is parameterized query?
- How can I with mysqli make a query with LIKE and get all results?
- Getting raw SQL query string from PDO prepared statements
- Correct way to use LIKE ‘%{$var}%’ with prepared statements?
- MySQL Prepared statements with a variable size variable list
- How to replace MySQL functions with PDO?
- CakePHP find method with JOIN
- ALTER TABLE in Magento setup script without using SQL
- Does php execution stop after a user leaves the page?
- PHP – Import CSV file to mysql database Using LOAD DATA INFILE
- Executing a PHP script with a CRON Job [closed]
- How to use php array with sql IN operator? [duplicate]
- Validating Crontab Entries with PHP
- Fatal error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs
- How to use PHP to connect to sql server
- Execute raw SQL using Doctrine 2
- Simple PHP SQL login troubleshooting
- Change date format (in DB or output) to dd/mm/yyyy – PHP MySQL
- How to execute a stored procedure in php using sqlsrv and “?” style parameters
- MySql PHP select count of distinct values from comma separated data (tags)
- CRON command to run URL address every 5 minutes
- SQL & PHP – Which is faster mysql_num_rows() or ‘select count()’?
- Get orders total purchases amount for the day in Woocommerce
- Bash script to run php script
- Do I have to use mysql_real_escape_string if I bind parameters?
- PDO and MySQL ‘between’
- Get Return Value from SQL Stored Procedure using PHP
- PDO Return All Rows [duplicate]