Hmm...don?t you have to actually create a job in crontab? Saying that you want a mail every day at 6:00 you would want to create something like:
* 6 * * * php /usr/local/bin/php > /dev/null in crontab and lose #!/usr/local/bin/php -q in your script. # Daniel Alsen | www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # > Hello All, > I have a php script that i tested first through my browser. > If has a simple mail() command. > It workd fine and I received the email. > not I tried to run it as a cron job by adding > #!/usr/local/bin/php -q > My webmaster account receives the confirmation that cron > job has run, but I do not receive the emails that the > program is > supposed to send. > This is the code: > Thanks for the help....... > > #!/usr/local/bin/php -q > <?php > $subject="Cron Job has run"; > $body="test.php is running now"; > $sendtome = "[EMAIL PROTECTED]"; > mail($sendtome, $subject, $body); > ?> > --- mike cullerton <[EMAIL PROTECTED]> wrote: > > #!/usr/local/bin/php -q > > > > on 1/10/02 12:16 PM, Mark at [EMAIL PROTECTED] > > wrote: > > > > > I've got this problem that won't go away. > > > > > > The headers are showing up at the top of the page when > > I run php in > > > cgi mode. any ideas? > > > > > > -- mike cullerton > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > To contact the list administrators, e-mail: > > [EMAIL PROTECTED] > > > > > ===== > Mehmet Erisen > http://www.erisen.com > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]