简体   繁体   中英

Execute Query on a Specific Date and Time

是否有可能使用PHP或ODBC在特定的给定日期和时间上执行查询

$date = '11/30/2013 11:59 AM';
Insert into tbl1 (id,name,age) values ('$id','$name','$age'); 

The software utility CRON is something that can help you schedule jobs and this is generally found in Unix based operating Systems. So if you are using some Unix based hosting, they maybe providing you a scheduler that can help you execute a particular PHP script at a particular interval.

This is the link to BlueHost page that tells you ways to set up CRON with your PHP. Similarly you can find ways to do this at your own hosting. I am sure there is not a lot of programming involved, just you need to make sure how can you initialize CRON at your server or hosting and then you can write your PHP scripts in normal fashion (like you always do)

One thing more, if your hosting is providing you Cpanel (which most hostings do these days), this link might then be helpful for you. Happy Scheduling :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM