php 服务器脚本解决办法

WBOY
Release: 2016-06-13 12:29:51
Original
1031 people have browsed it

php 服务器脚本
如何写一个php 脚本,将数据表a的数据每天定时复制到数据表b中 ? 求助……

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


crontab 来添加定时执行程序 你的服務器是linux還是windows?
如果是linux則比較簡單,你可以用linux附帶的crontab來實現定時操作,windows則比較麻煩.可能要用任務計劃

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template