Directly accessing server database via Ajax (without PHP or some other intermediate)

后端 未结 3 2001
时光说笑
时光说笑 2020-12-07 01:39

With powerful frameworks like jQuery, it seems to be possible to build an entire app logic on the client side. It\'s very much analogous to building a client app as a native

3条回答
  •  醉酒成梦
    2020-12-07 02:00

    I suppose one could do that, but PHP is rather more convenient for manipulating result sets. Also, the traditional approach provides an extra level of security so that machines in the wild don't have direct access to the database, and all the usual webserver security and access controls can be used.

提交回复
热议问题