I have a PHP framework. Recently I’ve put some burden on NODE.js
shoulders. Now I don’t know where to put node.js
files. For now I have one file, but It’ll get bloated in the near future. Where do you suggest to put these files?
Thanks in advance.
EDIT :
I’m asking to see if putting nodejs files inside the php framework best practice. Or should we put all nodejs file in www folder without ever caring about our PHP framework.
Problem courtesy of: ALH
Solution
You shouldn’t put your node.js
code in any web accessible folder (like www), as this is server code and it shouldn’t be accessible from the web.
Your best bet is to just make another directory to host your node.js
application which isn’t in www or any other web accessible directory.
Solution courtesy of: Munim
请您自行验证核实并承担相关的风险与后果!
CoLaBug.com遵循[CC BY-SA 4.0]分享并保持客观立场,本站不承担此类作品侵权行为的直接责任及连带责任。
如您有版权、意见、投诉等问题,请通过[eMail]联系我们处理,如需商业授权请联系原作者/原网站。