简体   繁体   中英

PHP client to communicate with Apache Thrift API

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.

如评论中所述,您应该使用fsockopen ,因为它提供了对套接字的低级访问,就像python TSocket一样。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM