cron can be tricky to set up and it depends on how your ISP has things set up.
but if you can get to the cron tab section you need to enter a command like this
/usr/bin/php /home/httpd/vhosts/YOUR_DOMMANI.COM/httpdocs/clients/CRON.php > /dev/null
the first part of string tells cron "hey i want to run a PHP cron file and this is the location
where PHP is located
then there is a space
then you need to specifiy the full path to the (the way the server sees it to the file you want to
run as a cron)
you also set the time interval if you want daily at noon put a 12 in the hours box
you can put * in the other boxes
another tip create a file called phpinfo.php
in that file
<?php
phpinfo();
?>
save > upload > and then run that file you will see all the settings and paths your server uses
good tip for figuring out the cron command paths
On Thu, 18 Aug 2005 09:18:17 +0100, Colin McKinnon <co**************@andthis.mms3.com> wrote:
sh**********@gmail.com wrote:
i have a page and i need that page to be called every day at 12:00
that page is going to connect to the database fetch some emails and
will start mailing them how i am goning to do this.
can i do it using cron in cpanel
erm maybe - if you gave some clues about what OS it's running on. Also WTF
is cpanel?
Certianly on *nix/Linux box cron is the tool to run jobs at regular
intervals but:
1) you need appropriate permissions to submit cron jobs
2) you'll need to either run it using the standalone PHP executable (which
may or may not be installed on your system) or use a command line tool like
curl/lynx/wget... to fetch the page from the webserver.
C.