Jump to content
fuzzylr

Console app published in a browser?

Recommended Posts

I wrote a very small Linux application. I wanted to embed it into a browser so that I didn't have to compile it and to have my friends look at it. I wanted to use php to make a call to the executable and then display it int he browser.I'm really new with both C++ and Php so I'm sure I can do it but I'm not sure about how to it the app to work int he browser. The application itself will be copied to the html folder and so I guess the trick is getting it to display.Current Code:

system ('./menu');

At this time it creates an infinite loop.Suggestions / comments

Share this post


Link to post
Share on other sites

If that's all you have and you have an infinite loop, then I would think that the issue is in the C++.By the way, I'm pretty sure that system function will wait until the C++ program exits before it returns output. So if your program take any input, or is any form of interactive, you're probably out of luck with this approach.

Edited by ragae

Share this post


Link to post
Share on other sites
If that's all you have and you have an infinite loop, then I would think that the issue is in the C++.By the way, I'm pretty sure that system function will wait until the C++ program exits before it returns output. So if your program take any input, or is any form of interactive, you're probably out of luck with this approach.
Yes it does. It just kept looping. It was kinda neat. Apache sort of held it's own before I terminated it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...