Results 1 to 2 of 2
Thread: Setting up a cron in Cpanel
-
07-11-2004, 04:36 PM #1Web Hosting Guru
- Join Date
- Sep 2003
- Posts
- 256
Setting up a cron in Cpanel
Hello folks,
I wrote a script that I want to run every night at midnight. I went into Cpanel's cron and put the following settings:
Command to run: http://www.mydomain.com/myscript.php
Every weekday, every month, every day, 0 hour.
Unfortunately, my script doesn't run every night at midnight. Is it ok to put the URL to the script in the command to run?
Any help would be greatly appreciated.
-
07-11-2004, 05:24 PM #2Web Hosting Guru
- Join Date
- Sep 2003
- Posts
- 256
Nevermind... I guess you have to do php -f public_html/filename.php