开发者

Automatic API database insertions?

开发者 https://www.devze.com 2023-03-05 19:48 出处:网络
I have managed to fill a database of information from a popular social networking site api. This information is all of \"my posts\". I used json, php, and mysql to do this. Now that the database is fu

I have managed to fill a database of information from a popular social networking site api. This information is all of "my posts". I used json, php, and mysql to do this. Now that the database is full of all of my legacy posts I am troubled with a way of having this data be updated when a 开发者_运维百科"new post" is sent through the service. I would like it so that when I "update the service" I can get that info into the database asap. What is the best way to do this automatically? Should I just manually go to a page running a php script every time I post something?


Create a page that will update the database with your newer posts when it is loaded. Then create a cron job that loads the php file every day (or whatever interval you want).

0

精彩评论

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