V
V
Vasyl Kovbassa2017-02-22 12:26:31
PHP
Vasyl Kovbassa, 2017-02-22 12:26:31

Is it possible to make friends with Node & php?

perhaps a stupid question, but still:
Is there a way to set up a local server on a node and force it to build not only the frontend but also execute php scripts?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yustas Alexu, 2017-02-22
@movasyl

maybe a stupid question

And there is
I'm pretty sure you can , but why?

F
Fadi Haj, 2017-02-22
@fdhaj

Use Thrift ( Node.js / PHP ) to communicate between services.

O
olijen, 2017-04-26
@olijen

Here, there is an opportunity from php to work with V8. php.net/manual/en/book.v8js.php
Why?
The ideas of data validation for the client on the server come to mind and vice versa and, in general, DRY of everything for a bunch of PHP and JS. But I mean, when JS is in the browser, and php is on the server. Why bind node and php is not clear. Unless you have some strange tandem with node daemonization and a regular php server. But if you need to integrate them into each other, this is probably an architectural mistake. Tell us about the task. Or just interested?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question