Answer the question
In order to leave comments, you need to log in
On the same nodejs site with php?
Hello. I am making a website in php. However, there is a heavy js code that needs to be executed on the server (the client has nothing to do with it at all). Is it possible to use node.js for this on the same site? I'm not familiar with node at all. Thank you for your help.
Answer the question
In order to leave comments, you need to log in
Can. Either run directly from php via exec (but there may be performance problems because of this if the system is heavily loaded), or write rewrite rules for the Web server so that some requests are processed by PHP scripts, and some are proxied to the port on which the server running on node.js hangs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question