search

Home  >  Q&A  >  body text

javascript - How to use node and php to achieve front-end and back-end separation, are there any specific examples?

Node, as the middle layer, accepts the browser's request, then requests the PHP API interface to splice HTML and return it to the browser

大家讲道理大家讲道理2782 days ago321

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 13:04:40

    I think it’s not that complicated, it’s actually just two layers

    • In the first layer, the browser sends a request to the node

    • The second layer node sends the request to php

    Just completely isolate these two and look at it. As for the interface for node to call php, it should be CURL.
    I haven’t used many nodes, so I don’t know much about it. Sorry

    reply
    0
  • Cancelreply