M
M
M1chae12017-07-08 14:45:32
PHP
M1chae1, 2017-07-08 14:45:32

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

2 answer(s)
4
4X_Pro, 2017-07-08
@M1chae1

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.

V
VoidVolker, 2017-07-08
@VoidVolker

Yes, you can.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question