开发者

A PHP platform to post messages on specific date [closed]

开发者 https://www.devze.com 2023-04-07 20:13 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can开发者_StackOverflow社区 be reopened, visit the help center. Closed 11 years ago.

I am planning to write my first PHP server side code. It includes a scheduler that will email a message to a user on a specific date. The front end of the application is fairly simple.

PHP produces an HTML page where you can select a date in the future to post the message to a an email address.

The question is how would you create an event manager in PHP to handle this? What database would you use? MYSQL or PostgreSQL and why!?


It makes no difference MySQL and PostgreSQL can both handle this fine, they are called databases for a reason.

MySQL is more common as a LAMP stack and you will probably find a lot more information on using PHP with MySQL so I'd stick with that.


To run schedule tasks on server use cron. With cron you can run php file that will read data from database and send email.


In regards with the scheduling, you can utilize a cron job if you are using Linux. Windows has a similar service as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号