Question

I am a PHP developer, working on a site that will be communicating with another server with Apache Thrift API, so I want to know that is there some existing class or some way that I can use to communicate with Thrift API in PHP. I saw example written in Python that use Tsocket but I don't know whether PHP has Tsocket class or not. So if some one have done such work then please post some sample or tell about some class that I can use to implement thrift API client in PHP.

thanks in advance for everyone's effort.

Was it helpful?

Solution

As posted in a comment, you should use fsockopen, as it provides a low-level access to sockets, just like pythons TSocket.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top