Online Use Of C++

SpaceshipSpaceship
Watch

Dead Eye

Established Member
Impact
0
Im pretty sure that C++ can be used online through Web Servers, however havent seen this in complete practice. Was wondering if anyone has had any experience of coding for this situation (using C++ of course) or knows of any useful places to find out more information on the topic at hand?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Sure.

You can make a c++ program, and run it as binary on a linux system, and using php to execute commands ect...

for example:
Teamspeak linux server ;) has ways you can control what it does with php, or pretty much any server side language, not sure is this what you ment... but this is what i thought you ment...
 
0
•••
I had a feeling that it was possible, im just not quite sure how.

Though I hadnt heard about PHP calling to a C++ binary program before...

Thanks for the info :)
 
0
•••
you use:

system() ;) you can even execute excel documents with system() and add columns and save the excel file :)
 
0
•••
Oh right cool, thanks, ill look it up on php.net

Thanks a lot ^^
 
0
•••
Dead Eye said:
Oh right cool, thanks, ill look it up on php.net

Thanks a lot ^^

the excel thing, you have to have excel on the windows server, and the file local though... forgot to add that ;) (Windows only!)
 
0
•••
no need for php, make the C/C++ a cgi, or better yet a fast cgi program and then you have none of the overhead of php.

You can get a library to help, at http://www.eekim.com/software/cgihtml/
 
0
•••
You also have the option to use your webserver api. That is what mod_php, mod_perl, mod_whatever do. They are wrappers for languages to be able to access Apache api. With c++ or c you don't need such wrapper because the api is easly accessible.

What you need to do is to study Apache's api and use it from your C/C++ web application. Your application can then be loaded by Apache as other apache modules.

Link to apache: http://httpd.apache.org/docs-2.0/developer/API.html

You can also do the same thing with MS IIS.

Hope that helps.
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back