friends
anybody know how to schedule a php script in a server.I want to send an email at regular interval.I created a php file for mailing and scheduled using crontab.but the file is not executing
by anup p thomas
To execute it from a crontab, php has to be compiled as a shell script.
A quick and nasty fix if it's not installed for shell execution, is to use wget or lynx to call the script through the web server ..
if the php interpreter can be called from shell use
%path to php%/php %your script name here% > /dev/null
or if it is in your path php %your script name here% > /dev/null
Saludos Gerardo