PHP as the front-end, other languages as the back end, PHP in addition to using curl to invoke the pretext, there are other methods.

Source: Internet
Author: User
Tags what interface
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.