Home >Backend Development >PHP Tutorial >php 服务器脚本解决办法

php 服务器脚本解决办法

WBOY
WBOYOriginal
2016-06-13 11:47:34859browse

php 服务器脚本
如何写一个php 脚本,将数据表a的数据每天定时复制到数据表b中 ? 求助……
------解决方案--------------------
你的服務器是linux還是windows?
如果是linux則比較簡單,你可以用linux附帶的crontab來實現定時操作,windows則比較麻煩.可能要用任務計劃
------解决方案--------------------

*/10 * * * * /usr/localhost/webservice/php/bin/php  /www/test/test.php >> /var/log/sendApi.log


crontab 来添加定时执行程序

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn