You are here: Re: Send an email automatically? is it possible? « All PHP « IT news, forums, messages
Re: Send an email automatically? is it possible?

Posted by NN on 09/29/79 12:00

On Wed, 16 Jan 2008 18:07:11 -0600, Ivan Marsh <annoyed@you.now>
wrote:

>On Wed, 16 Jan 2008 17:56:29 -0600, NN wrote:
>
>> On Wed, 16 Jan 2008 09:25:10 -0600, Ivan Marsh <annoyed@you.now> wrote:
>>
>>>On Wed, 16 Jan 2008 08:27:42 -0600, NN wrote:
>>>
>>>> I need to send an email automatically every week to the users in a
>>>> database that meet a certain criteria. the way i implemented this, so
>>>> far, is that when the admin logs into the index.php, the email is sent
>>>> if it wasn't sent that week already . the problem i'm facing is that
>>>> if the admin doesn't login for a whole week this email doesn't get
>>>> sent.
>>>>
>>>> is there a way to execute this index.php automatically every week?
>>>>
>>>> BTW my server supports both php4 and php5 and runs linux.
>>>
>>>man cron
>>
>> thanks!
>>
>> will it execute a php file?
>> or it works only with binaries?
>>
>> 10 14 * * 1 /path/to/file/index.php
>
>I don't do much command line php but I'm sure someone else here can help
>you out.
>
>The cron line would need to include the php executable so it would be
>something like:
>
>10 14 * * 1 /usr/bin/php.exe /path/to/file/index.php
>
>(That may not be where the php.exe resides.

thank you very much.

NN

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация