Home arrow Apache arrow Executing A C++ Application Over The Internet With PHP
APACHE

Executing A C++ Application Over The Internet With PHP


Unix is a powerful operating system that uses C/C++ extensively. In this article, Mitchell will use a couple of console commands, some C++ and some PHP, to show you how to create a totally integrated C++ application, which can be executed (and have its output captured) from PHP.

Author Info:
By: Mitchell Harper
Rating: 5 stars5 stars5 stars5 stars5 stars / 23
December 27, 2001
TABLE OF CONTENTS:
  1. · Executing A C++ Application Over The Internet With PHP
  2. · Creating the C application
  3. · Creating the PHP script
  4. · Conclusion

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Executing A C++ Application Over The Internet With PHP
(Page 1 of 4 )

If you’ve ever had any exposure to Unix/Linux, then you would know that it has both C and C++ compilers built into it: GCC and G++ respectively. Unix uses these compilers extensively during program installations, makes, etc. Using a couple of console commands, some C++ and some PHP, I will show you how to create a totally integrated C++ sample application, which can be executed (and have its output captured) from PHP. I will create the C++ application, compile it, and then talk about how we can execute that application via PHP using the passthru function. In a sense, this provides access to our application over the Internet.

To get the most from this article, you should have a Unix/Linux server setup running Apache and the latest version of PHP. A good grasp of C++ (standard ANSI-compatible C++), the Unix console, and some PHP experience are also required.
blog comments powered by Disqus
APACHE ARTICLES

- Programmatically Manipulating Microsoft Exce...
- Installing PHP under Windows
- Compressing Web Content with mod_gzip and mo...
- Compressing Web Output Using mod_deflate and...
- Setting Up Apache 2.0.45 to Parse PHP Pages
- Custom Error 404 Documents with PHP
- Using Apache and PHP on Mac OS X
- ASP: Active Sessions, Active Logins and Tota...
- Working With Oracle on Windows: Part 1
- The Quick-n-Dirty Guide to Setting Up Apache...
- Installing Apache With SSL: The Complete Gui...
- 7 Powerful .htaccess Customization Tips
- Trap And Get Notified: A Practical Solution ...
- One Way To Use Server Side Includes
- Using ForceType For Nicer Page URLs

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 2 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials