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

从客户端到服务器机器远程执行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.

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

报告相同问题?

悬赏问题

  • ¥15 marlin编译错误,如何解决?
  • ¥15 有偿四位数,节约算法和扫描算法
  • ¥15 VUE项目怎么运行,系统打不开
  • ¥50 pointpillars等目标检测算法怎么融合注意力机制
  • ¥15 关于超局变量获取查询的问题
  • ¥20 Vs code Mac系统 PHP Debug调试环境配置
  • ¥60 大一项目课,微信小程序
  • ¥15 求视频摘要youtube和ovp数据集
  • ¥15 在启动roslaunch时出现如下问题
  • ¥15 汇编语言实现加减法计算器的功能