Running Node.js in apache?

后端 未结 7 1098
予麋鹿
予麋鹿 2020-11-28 02:41

We have an Apache Webserver installed on a machine which also serves pages using Perl.

For a project I\'ve decided to use Node.js instead of Perl/Ruby. Just wonderin

7条回答
  •  甜味超标
    2020-11-28 03:02

    If you're using PHP you can funnel your request to Node scripts via shell_exec, passing arguments to scripts as JSON strings in the command line. Example call:

    
    

    The caveat is you need to be very careful about handling user data when it goes anywhere near a command line. Example nightmare:

    
    

提交回复
热议问题