[英]Connect PHP with Node.js
I've made 2 websites on heroku. 我在heroku上做了2个网站。 One is my chat application built with node.js and second is my PHP built website.
第一个是我用node.js构建的聊天应用程序,第二个是我的PHP构建的网站。 i want to integrate the node.js chat in my site.
我想将node.js聊天集成到我的网站中。 how to do that?
怎么做?
Congratulations on your service-oriented architecture! 恭喜您面向服务的体系结构! You can integrate them with web requests;
您可以将它们与Web请求集成在一起。 http lets you make what in effect are cross-host function calls.
http使您可以进行跨主机函数调用。 Php can call the node service with the curl_* functions.
PHP可以使用curl_ *函数调用节点服务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.