Php server script

Source: Internet
Author: User
In the php server script, how does one write a php script to regularly copy data from table a to Table B on a daily basis? Help ......


Reply to discussion (solution)

Your server? Is it linux? Is it windows?
For linux? Comparison ???, Can you use linux? Crontab ??? OK? Operation, windows? Ratio? Ma ?. You may want to use any ???

Is it more difficult to set scheduled tasks than to modify the crontab file?
You must have the permission on the file and pay attention to the format.
Scheduled tasks only need to be hooked up.

The server is linux. Is there any reference code? Thank you!

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


Crontab to add a scheduled execution program

Thanks, the id of Data Table a is auto-incrementing, and the id of Data Table B cannot be auto-incrementing. when copying a table, for example, if there are multiple IDs in table a, how can we insert data into data Table B in a loop? the database we use is mysql!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.