duanlan4801 2011-02-25 01:54
浏览 59
已采纳

从客户端到服务器机器远程执行CRUD操作的逻辑?

I am building a Cloud Application Using MySQL and PHP where Database and PHP script will reside in the server. I wanted a feasible solution where I could remotely handle all the request and perform CRUD operations remotely from a client machine to server machine. And here is the logic I could possibly think off

a) Generate and Implement API key logic for every user.

b) check the API key for granting access

c) Create special URI for CRUD operations which will handle all database request and process.

d) with the help of XML or JSON echo out the error or success message.

As my application is meant for private usage for few users. I would like to know if it is vulnerable if I design it this way or is there any other way round. ?

  • 写回答

1条回答 默认 最新

  • doumin4553 2011-02-25 02:32
    关注

    Sounds like you're talking about rolling your own REST API.

    For PHP I highly recommend using Tonic.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?