Re: [PHP] Set up cron using PHP

2004-10-07 Thread Alexandru E. Ungur
/* sender: "M. Sokolewicz" date: "Thu, Oct 07, 2004 at 02:32:17PM +0200" */ > ... > You can call this as follows: > > * * * * * * wget > http://www.example.net/scripts/bin/mail.php?user=a&pass=b ; rm -f ./mail.php > > > The first part will call the server via an http connection to run t

Re: [PHP] Set up cron using PHP

2004-10-07 Thread Petar Nedyalkov
On Thursday 07 October 2004 16:27, M. Sokolewicz wrote: > Petar Nedyalkov wrote: > [snip] > > > Your way is better for cronjob use, mine is better if the user needs to > > deploy the script not only as a cronjob. > > [/snip] > I agree ;) > > [snip] > > > This workaround is fine, but I think using l

Re: [PHP] Set up cron using PHP

2004-10-07 Thread M. Sokolewicz
Petar Nedyalkov wrote: [snip] Your way is better for cronjob use, mine is better if the user needs to deploy the script not only as a cronjob. [/snip] I agree ;) [snip] This workaround is fine, but I think using lynx or any similar browser can save the "rm -f" part. [/snip]yes... but wouldn't you

Re: [PHP] Set up cron using PHP

2004-10-07 Thread Petar Nedyalkov
On Thursday 07 October 2004 15:32, M. Sokolewicz wrote: > Petar Nedyalkov wrote: > > On Thursday 07 October 2004 13:17, Sheni R. Meledath wrote: > >>Hello: > >> > >> We need to set up a cron to send an automated email at regular > >>intervals. For this I need to execute a PHP file which ret

Re: [PHP] Set up cron using PHP

2004-10-07 Thread M. Sokolewicz
Petar Nedyalkov wrote: On Thursday 07 October 2004 13:17, Sheni R. Meledath wrote: Hello: We need to set up a cron to send an automated email at regular intervals. For this I need to execute a PHP file which retrieves the required information to be mailed. On my virtual server PHP is loaded

Re: [PHP] Set up cron using PHP

2004-10-07 Thread Petar Nedyalkov
On Thursday 07 October 2004 13:17, Sheni R. Meledath wrote: > Hello: > > We need to set up a cron to send an automated email at regular > intervals. For this I need to execute a PHP file which retrieves the > required information to be mailed. On my virtual server PHP is loaded as a > modu

[PHP] Set up cron using PHP

2004-10-07 Thread Sheni R. Meledath
Hello: We need to set up a cron to send an automated email at regular intervals. For this I need to execute a PHP file which retrieves the required information to be mailed. On my virtual server PHP is loaded as a module. Could you please let me know how can I execute a PHP file from the