幻想草稿工具
我试图通过创建自己的选秀工具来缓解过去几年中遇到的一些梦幻足球选秀问题。与现有的主要选秀工具(ESPN、雅虎、CBS Sports、NFL 等)类似,主要要求是允许人们登录并参与选秀。我希望草稿由管理员启动,并且无论其他人是否登录或注销都可以运行,它只需要运行即可;选秀状态、选秀时钟、下一支选择的球队。
我熟悉 PHP 和 MySQL,但是,我认为这还不够,因为我无法使用 PHP 维护草稿的状态……至少我不认为这样可以处理这个问题。建议采取哪些途径来满足上述要求?
I'm attempting to mitigate some of the fantasy football draft issues I've had the last few years by creating my own drafting tool. The major requirement, similar to the major draft tools out there (ESPN, Yahoo, CBS Sports, NFL, etc) is to allow people to log in and participate in the draft. I'd like for the draft to be started by an Admin, and be running regardless of if anyone else logs in or logs out, it just needs to run; draft status, draft clock, next team to choose.
I'm familiar with PHP and MySQL however, I'm not thinking this will be enough as I can't maintain the state of the draft using PHP...at least I don't think so to handle this. What would be the recommended avenues to pursue to handle the above requirement?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
几天前,我刚刚开始使用 PHP、MySQL 和 Ajax Push Engine (APE) 编写一个程序。
APE 的网站现在已关闭,但恢复后请查看:http://www.ape-project。组织/
I just started writing one for kicks a few days ago using PHP, MySQL, and Ajax Push Engine (APE).
APE's site is down right now, but check it out when it's up: http://www.ape-project.org/
我建议建立一个外部流程来运行草案本身。它将必要的数据放入数据库中,并且可以使用 PHP 来处理这些数据。
主要的挑战是外部流程和 PHP 之间的协调。
外部进程可能类似于 Perl 脚本,可以通过 cron 作业启动。
I would suggest an outside process to run the draft itself. It would place the necessary data in the DB and PHP can be used to act on this data.
The major challenge would be the coordination between that outside process and PHP.
The outside process could be something like a perl script, which could be kicked off with a cron job.
您可以使用 websocket 进行实时交互,无需ajax,我编写了一个实时应用程序,就像gchat 与它,除了 flash 要求之外,它非常可靠。
You can have realtime interaction without ajax by using websocket, i wrote a realtime app just like gchat with it, it's pretty realiable apart from flash requeriments.