I am developing plugin in WordPress in which I want automatically and regularly call of PHP page if user visit the page or not.
Basically I am storing the date when user access the website and want to send mail using PHP file after one week. I am storing the current date and next week date in my plugin database. When one week passed and next date is arrived I want to send them mail.
As per this question, we can create JavaScript and make AJAX call to particular PHP page, compare current date and if next date in database and current date matches we can send mail.
But what if someone ain't access my site for next 10 days? Then there is no AJAX call for my PHP page, right? I mean that JavaScript and PHP page will not going to executed and mail will not send.
Plugin will be on any server and may be that server not allow for schedule task, so I think cron will also not going to work.
I want to call my PHP page if someone access my site or not. How can I do this process?
Your help will be appreciated. Thanks in advance.