[Ilugc] [PHP-MAIL] - Send email for daily @ 12:10 AM automatically
- From: manokaran@xxxxxxxxx (Manokaran K)
- Date: Thu, 15 Aug 2013 15:35:17 +0530
On Thu, Aug 15, 2013 at 12:35 PM, Siva prabu <gsivaprabu at gmail.com> wrote:
How to send email for daily @ 12:10 AM automatically with attachment..
using PHP?
Only in core coding no hosting cron jobs....
PHP scripts run only when a user accesses a particular url which is routed
to the relevant script. This being the case you cannot schedule actions as
part of your web app*. You'll have to write a scheduler in PHP (aka
reinvent cron) and run it as part of your system init scripts!! So, IMO
cron is the way to go.
* unless you have another app that will ping the url at 12:10AM every day
using cron :-P
regds,
mano
--
Lord, give us the wisdom to utter words that are gentle and tender, for
tomorrow we may have to eat them.
-Sen. Morris Udall
Other related posts: