Title, backend language such as Python, server using Nginx
Reply content:
Title, backend language such as Python, server using Nginx
This depends on what interface the backend provides, webservice? Socket SOAP, etc.
File_get_contents () say why not node?
No curl is recommended, his parameters are difficult to remember, a request library is relatively friendly
See https://segmentfault.com/a/1190000002867007
PHP Front: Mainly to deal with the view layer of things, the back end of the data to take (curl/file_get_contents), and then render to the page, simply say and view deal with
Python backend: Mainly to deal with data additions and deletions, and simply to deal with the database
I'd like to ask the main question, how does PHP work as a front end?
PHP can be used as a front-end these days?
Can change the idea, for example Python writes the data to Mysql/memcached/redis, then PHP again as usual direct connection Mysql/memcached/redis reads the data, may open the persistent connection, avoids each request repeatedly establishes the connection the expense, Improves concurrency performance.
Http://m.jb51.net/article/51974.htm
Looks like there's a PHP technique for sending HTTP requests.
Why not connect PHP directly to the database, the thing used to interact with the database is so complicated
I thought PHP could write the front end.
Php-curl-class package, or simply take it directly to the line.
file_get_content()
How to set timeout? Unless the socket time-out is set globally.
Thrift Remote Call
The question. You can Baidu understand the next RPC
~ ~
Apache Thrift ~
PHP do the front-end, how to play ah?
Don't talk about the big front. The front end is the part of any visitor who can view and modify the source code, in addition to the backend. Even if PHP is used only for HTML output, it is the backend.