Is it possible to use Apache Thrift on a regular web server?

后端 未结 1 561
情深已故
情深已故 2021-02-08 11:53

I already have a web server that I pay for, and I want to expose some services on it using Thrift and PHP.

My question is: can I run a Thrift server using normal PHP tha

1条回答
  •  天涯浪人
    2021-02-08 12:12

    Okay, well I have figured out the answer on my own!

    If you use a TPhpStream on the server side, you are able to serve requests coming in as regular http requests.

    Many thanks to Rob Wilkerson https://github.com/robwilkerson/Thrift-Client-Server-Example--PHP-.

    I also blogged about how to implement a simple example with PHP and Python at http://willwarren.com/2012/01/24/creating-a-public-api-with-apache-thrift/

    0 讨论(0)
提交回复
热议问题