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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:45:32+00:00 2026-05-15T09:45:32+00:00

Is there a relatively easy way to display the output of a C++ program

  • 0

Is there a relatively easy way to display the output of a C++ program on a webpage? And I don’t mean manually, in other words, you see it on a webpage as it runs not as in I make a code tag and write it in myself.

EDIT: Just so everybody can get this clear I am going to post this up here. I am NOT trying to make a webpage in C++. Please excuse me if this sounds spiteful or anything but I am getting a lot of answers relating to that.

  • 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-15T09:45:33+00:00Added an answer on May 15, 2026 at 9:45 am

    Step one, get yourself a server-side language. Be that PHP, ASP, Python, Ruby, whatever. Get it set up so you can serve it.

    Step two, find your language’s exec equivalent. Practically all of them have them. It’ll let you run a command as if it were from the command line, usually with arguments and capture the output. Here’s PHP’s:

    http://php.net/manual/en/function.exec.php

    Of course, if you’re passing user-input as arguments, sanitise!


    I’ve just seen that you accepted Scott’s answer. I usually wouldn’t chase up a SO thread so persistently but I fear you’re about to make a mistake that you’ll come to regret down the line. Giving direct access to your program and its own built-in server is a terrible idea for two reasons:

    1. You waste a day implementing this built-in server and then getting it to persist and testing it

    2. More importantly, you’ve just opened up another attack vector into your server. When it comes to security, keep it simple.

    You’re far better having your C++ app running behind another (mature) server side language as all the work is done for you and it can filter the input to keep things safe.

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

Sidebar

Related Questions

Is there a relatively simple way in nant, without writing a custom task, to
Is there a relatively simple way to change all the data in a JTable?
Is there a relatively straightforward way to get the intersection of two DataTables in
I'm relatively new to Javascript and was wondering if there's a quick way to
Are there any good books for a relatively new but not totally new *nix
I'm working on a relatively small asp.net web application and am wondering if there
I'm sure this is a relatively simple question, and there must be a good
Is there any way to use Relative path when configuring subversion externals. For example
There is a conversion process that is needed when migrating Visual Studio 2005 web
There are two weird operators in C#: the true operator the false operator If

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.