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

  • Home
  • SEARCH
  • 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 617001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:23:14+00:00 2026-05-13T18:23:14+00:00

for one of my applications I’d like to provide a minimal web interface. This

  • 0

for one of my applications I’d like to provide a minimal web interface. This core application is written in C++ and uses Qt4 as a framework. Since I’m also using some libraries I wrote to calculate some things and do some complex data management, I’d like to use this existing code as a backend to the web interface.

Idea 1: Using an embedded web server

The first thing I tried (and which worked to some degree) was using an embedded web server (mongoose). As you can imagine, it is just a very thin library and you have to implement a lot of things yourself (like session management, cookies, etc.).

Idea 2: Using a normal web server and adding a fcgi/cgi/scgi backend to my application

The next thing that came to my head was using a mature but compact web server (for instance, lighttpd) and simple provide a fcgi/scgi/cgi backend to it. I could write the web application using a good framework, like Pylons, PHP, or RoR, (…) and simply have an URL prefix, like /a/... which allows me to directly talk to the backend.

I tried to implement the libfcgi into my application, but it looks messier than needed (for instance you’d have to implement your own TCP/IP sockets to pass on data between your app and the web server and tunnel it through the FCGI library, meh)

Idea 3: Creating a command line version of my application which does the most basic things and use a normal web server and framework to do the rest

This is the third idea that came to my head. It is basically about creating a web application using a traditional way (PHP, RoR, etc.) and using a command line version of my application to process data and return it when needed.


I’ve got some experience with creating web applications, but I never had to do something like this, so I’d like to hear some ideas or suggestions. I’d like to use JavaScript on the browsers (AJAX, that is) and pass some JSON constructs between web browser and server to make the user experience a bit smoother.

So what are your suggestions, ideas on this? I don’t want to re-invent the wheel, honestly.

  • 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-05-13T18:23:15+00:00Added an answer on May 13, 2026 at 6:23 pm

    I would never expose a custom written application to the net as front-end, for that servers like apache or lighthttp are build. They give you some serious security out of the box.

    As for interaction of your app with that webserver, it depends a bit on the load and what kind of experience you have with writing software in PHP, python or other languages supported by your web server (via interpreter of course).

    A slight load, and a command line tool accessed from PHP might do perfectly well.

    A more heavy load and you might wish to implement a simple (SOAP?) server with Qt and access that from a python (or php) script.

    That way you don’t need to do layout in you app, and you also don’t need to implement security all that much.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In this moment, I have two web applications(one application is an MVC2 application for
I have a system that has three applications (one windows application and two web
I have a web application that communicates between two different web applications (one receiver
We are running several ASP.NET applications (one per customer) based on our custom framework
In one of my applications I am saving a YouTube video's id... Like "A4fR3sDprOE".
I want to run several REST web applications inside one Java process to save
One of my applications is crashing and I am told that this could be
In one of our applications we use the camera intent to take pictures. This
I have two applications one a console application and the other an ASP.NET app.
One of my applications uses sql session state, the timeout is currently set to

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.