简体   繁体   English

PHP签入功能,例如foursquare

[英]Php Check-in feature like foursquare

How does one go on making a system like the check-in feature like foursquare in php? 如何继续制作像php中的foursquare这样的签入功能的系统

I would like to build a feature like this but i don't know how to start it (just the check-in feature). 我想建立一个这样的功能,但我不知道如何启动它(只是签入功能)。 Your help will be really appreciated. 您的帮助将不胜感激。

A simple way to approach it would be to have Users, Locations, and check-ins SQL tables and set up foreign keys in the check-ins table. 一种简单的解决方法是拥有用户,位置和签入SQL表,并在签入表中设置外键。 Anytime someone checks in at a location you can add an entry to that table. 每当有人在某个位置签入时,您都可以在该表中添加一个条目。

Obviously the architecture would be different on a scale like foursquare. 显然,该架构在像Foursquare这样的规模上会有所不同。 You'd want to use NoSQL or something like it (JSON, MongoDB) with the same "check-ins table" approach, but built for faster traversing. 您希望将NoSQL或类似的东西(JSON,MongoDB)与相同的“签入表”方法一起使用,但可以更快地遍历。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM