douzhuo8871 2012-08-18 22:36
浏览 32

Node.js和PHP

I'm having a hard time figuring this out. I'm building a game and I want the game to be coded with Node.js (partly for learning and partly cause it seems right). But the game will also have a community and other stuff that will be in PHP.

So my question is. How do I talk to Node.js with PHP? Let' say that a user signs in and goes to the actual game (which is real time between to players), how do I give the user information to Node.js?

Or should I simply code everything with Node.js? I just want to be pushed in the right direction, what is the best way?

  • 写回答

2条回答 默认 最新

  • douwu5009 2012-08-18 22:38
    关注

    I'm not sure what you've tried, but since you question is pretty broad, try starting here: http://bergie.iki.fi/blog/dnode-make_php_and_node-js_talk_to_each_other/

    评论

报告相同问题?

悬赏问题

  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛