|
Posted by Ivan Marsh on 10/15/31 12:00
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.
--
I told you this was going to happen.
[Back to original message]
|