Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8008865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:16:03+00:00 2026-06-04T18:16:03+00:00

I already have a web server that I pay for, and I want to

  • 0

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 that’s hosted on the default port (the same way web pages are hosted) instead of having a separate PHP application that runs on some funky obscure port. This way I wouldn’t have to change the server configuration (which is something I’m not able to do even if I wanted to).

Thanks

EDIT: maybe I should clarify a bit more. Once I’ve defined my service using a .thrift file, is it possible to:

  1. Run the thrift code generator
  2. Take the generated code and put it on my webserver
  3. Create an index.php which says (in pseudocode) “create a new instance of the service, and handle incoming requests”?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:16:05+00:00Added an answer on June 4, 2026 at 6:16 pm

    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
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very fast web server (IIS6, ASP.NET) that I want to use
This just saves time. Since I already have a web applciation. I can just
I already have my azure web role running in cloud using azure sdk 1.6.
As I have already figured out. I want to create a web service on
How can i set default home page in asp web.config file. i have already
I have an ASP.NET project which has already some custom fields in it's web.config
I have a project using Lucene3.5 already. Now i need to provide web search
We have a web server that we're about to launch a number of applications
We have a web server that we're about to launch a number of applications
I have a web.py server that responds to various user requests. One of these

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.