Yeah if you have CPanel, or really any other control panel, it should be an option in there.
If not, the cron should look something like:
Code:
0 0 * * * /home/username/script.php
That assumes you want to run it at 12:00 AM.
To run it, you can make your script executable, and include the path to the PHP executable at the top like:
Code:
#!/usr/local/bin/php
Or, you can change your cron command to call PHP directly:
Code:
0 0 * * * php /home/username/script.php
or you can use wget if it is in the document root.
Bookmarks