Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can use node.js AND php? [closed]

Tags:

php

node.js

My main application will be in Node.js. However, I'd also like a phpBB forums and a MediaWiki wiki, preferably served on the same Amazon EC2 server.

I am aware of DNode which seems to be a way for PHP and Node.js to communicate with each other. However, what I want to do is just handle certain directories to PHP - eg:

/ = PHP
/chat/ = Node.js
/forums/ = PHP
/wiki/ = PHP
like image 897
apscience Avatar asked Jan 25 '26 21:01

apscience


1 Answers

Just as your example shows, you use PHP for your directories you have listed, and Node.js for the chat client. I don't see why you would be integrating your PHP code into the chat client. If anything, you might pass it data, and that can be done with json.

like image 82
Eric Leroy Avatar answered Jan 27 '26 11:01

Eric Leroy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!