duanan1228 2013-01-09 12:54
浏览 37

PHP服务器的可行性

I'm making a turn based online multiplayer game (matches are 1v1) where information needs to be pushed to clients every 5-10 seconds. Now from my experience and reading the best way to do this is through a server program I build with Java for example and run on a dedicated server. The only problem is because I'm young (17) I don't have money to support a thing like that. My client will be Java and my server in PHP on a Linux-Apache webserver.

From here should I use long polling to communicate to clients or should I try to use sockets?

  • 写回答

2条回答 默认 最新

  • dongpan1365 2013-01-09 13:06
    关注

    Will it be open source or private?

    If it's open source, just release the server code and let people run their own servers.

    If it's private, charge money for using the server, and if you get your sums right, the problem of not having money for the server should disappear.

    In the short term, while there's not too much traffic, use a relatively cheap cloud service like Amazon. If you need real power, this won't last you long, but it will be sufficient to get you started. You won't be able to avoid at least some financial outlay upfront, but doing it that way should keep it as cheap as possible.

    评论

报告相同问题?

悬赏问题

  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥15 键盘指令混乱情况下的启动盘系统重装
  • ¥40 复杂的限制性的商函数处理