|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
sending e-mails periodically???
I have a site and i am sending the statistics to my writers with a single php execution like "send_stats.php" but i don't want to write the url everytime... How can I send these details periodically to my writers???
|
|
#2
|
|||
|
|||
|
If you're on a "unix" system, you can set up crontab to execute the script
__________________
Best Regards, Håvard Lindset |
|
#3
|
|||
|
|||
|
without crontab...
Is there a way to do this without crontabs???
|
|
#4
|
|||
|
|||
|
I agree with Lindset on the crontabs. I have a php script that I use to set and edit crontabs which makes it really easy to manage.
|
|
#5
|
|||
|
|||
|
ok but....
Ok i know the crons but i can not reach the crontabs because of my hosting firm so is there a way to do this with sessions???
|
|
#6
|
|||
|
|||
|
well there is a way to do it,....but it is not a good way
![]() You could store the time that the email is supposed to be sent. Then build a script that will check that date/time. Then include that script on every page as an include. |
|
#7
|
|||
|
|||
|
is there a?
is there a function like mail_once for ex:
if(date("H")==12) { mail_once("myname@mysite.com","Hi","the stats","From: I"); } so i can include it in my index.php ??? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > sending e-mails periodically??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|