Click here to Skip to main content
15,905,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a web app in php and mysql, the application registers clients that
rent offices. To say if a client rented an office for a month, the start and end
date is registered in the client's profile.
everything's working fine. But I want an auto-reminding email to be sent to the client
like a week before the end date which is in that client's profile.

Still new to PHP, and I think this can be possible.
Any help will be appreciated.
Posted
Comments
ZurdoDev 9-Oct-13 7:33am    
You need to create a service. Php code only runs when someone visits the site. If no one does, the code is not running so it can't be used for service like features. You'll want to create a separate service or console app or something that can be scheduled to run.

1 solution

The mechanism is called "Cron-Jobs" in PHP. This should help :
http://stackoverflow.com/questions/120228/php-running-scheduled-jobs-cron-jobs[^]
 
Share this answer
 
Comments
Member 10325285 9-Oct-13 8:40am    
Hello Pravinda !
I appreciate your concern, but I never worked with "Cron-Jobs" before.
Can you give some code examples on how I can make this work with Cron-Jobs?
Captain Price 9-Oct-13 8:59am    
You my friend...., Ever heard of Google.com ?
I found a dozen of tutorial, here; https://www.google.com/search?q=cron+jobs+php

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900