chmpdog Posted June 1, 2010 Share Posted June 1, 2010 In my script I have made it so that when a page reaches 100 views it should send out emails to everyone involved. Right now I have it so when the counter reaches 100 it will do the mail function, but I have run into problems. For example, it can lead to long page load times for the user who is the 100th visit. How can I make it so most of the heavy lifting is not on the user. I was thinking cron job, but I don't know if I can instigate that after a specific event. Thanks Charles Link to comment https://forums.phpfreaks.com/topic/203552-send-emails-to-my-users-after-specific-event/ Share on other sites More sharing options...
kenrbnsn Posted June 1, 2010 Share Posted June 1, 2010 Please post your code, without seeing it we would just be guessing at your problem. Ken Link to comment https://forums.phpfreaks.com/topic/203552-send-emails-to-my-users-after-specific-event/#findComment-1066265 Share on other sites More sharing options...
chmpdog Posted June 1, 2010 Author Share Posted June 1, 2010 well it's not really a problem, my code works fine. I was wondering if there is an alternate way to have the server execute a script. (rather than putting it on the client) Link to comment https://forums.phpfreaks.com/topic/203552-send-emails-to-my-users-after-specific-event/#findComment-1066269 Share on other sites More sharing options...
kenrbnsn Posted June 1, 2010 Share Posted June 1, 2010 If you show us what you're using now, we may be able to suggest a solution to the long load times and give you an alternative. Ken Link to comment https://forums.phpfreaks.com/topic/203552-send-emails-to-my-users-after-specific-event/#findComment-1066273 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.