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 8813449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:51:15+00:00 2026-06-14T03:51:15+00:00

(source: atmel.com ) Background I’ve a 5 years PHP background and in the last

  • 0

enter image description here
(source: atmel.com)

Background

I’ve a 5 years PHP background and in the last month I’ve been busy finding a way to do web with C++ (even if I know this is childish and stupid, I feel like C++ is the only true programming language and I have this sort of religious faith in it that makes me love it and only it).

My CGI trip

I’ve come across several blog posts (mostly from 2000-2003), discussions and had some chat discussions here. This is what I’ve gathered:

  • PHP is designed for the web while C++ is a generic purpose language.
  • PHP is inconsistent and have a lot of hate on the web
  • PHP is the most common and supported scripting language out there
  • CGI is a pretty old and common technology that was used in the days before PHP (PHP1 was actually a CGI library for C)
  • In CGI (vs PHP) we have the problem of the fork-exec execution for each process which kinda slows everything down
  • ^ this is what FastCGI is there for
  • For some common mathematic operations C++ is 200X faster than PHP (because of PHP being an interpreted language)
  • Big websites that requires performance doesn’t use pure PHP (Facebook use HipHop which is something related to C++ and on Google there are several rumors about it being written in Perl, C++, C or some other language but PHP)
  • PHP is faster to learn and to write
  • C++ has very bad string manipulation methods
  • There are some good (subjective) libraries for C++ CGI like wT (witty).
  • Some people just told me to stay away from PHP as far as I could

Real question(s)

Today I have to decide whatever to go with PHP or CGI. And I’m asking you:

  1. Is CGI dead in 2013? (yeah I know it has been asked before)
  2. Since everybody needs performance and considering that I’ve time to spend like 1 year to build a solid C++ library for the web and that I don’t like easy things, what are the cons in using CGI (or FCGI) nowadays (in comparison to newer techonologies)
  3. Is there a more efficient way to build websites with C++
  4. What is the real deal with FastCGI?
  5. Is FastCGI widely supported?
  6. Considering a project where I have to build a web tool, web app, iphone app, pc app and mac app all around a single website/server/database, can I actually reuse some code from the C++ website for my applications? (the database interaction for example)?
  • 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-14T03:51:17+00:00Added an answer on June 14, 2026 at 3:51 am
    1. Almost used for only very specific cases
    2. Don’t build one use one: CppCMS*
    3. Yes, C++ Web Frameworks
    4. Because it is dead for a long time ago
    5. It replaces CGI making it VERY efficient
    6. Yes – all major (and minor) web servers support it

    * Full-disclosure: I am the author

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

Sidebar

Related Questions

(source: flickr.com ) Hi again everyone :) So today I'm trying to basically create
(Citing source at: http://jqueryui.com/demos/dialog/#modal-form ) As an example, this works great but each time
(source: yfrog.com ) I am trying my hand at making an invaders clone. there
(source: google.com ) Recently, I realize the Chinese Character displayed are rather ugly in
(source: googlepages.com ) In above image I want to mark Circle's edge with red
Source videos: http://www.artworknotavailable.com/tmp/ffmpegtest Quicktime Pro 7.7.1 Inspector (Win 7) reports the following for the
Source:http://jpsoft.com/help/index.htm?alias.htm Aliases can use command line parameters or parameters like those in batch files.
Source: http://asciicasts.com/episodes/16-virtual-attributes I'd like to achieve a similar setup as below, but in CakePHP
(source: easycaptures.com ) HTML code <div class="paddingTop30 height30"> <div class="width100 inline greyText">Lesson Date</div> <div
(source: blogcu.com ) Assume there is a rabbit and at position (1,1). Moreover, its

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.