PHP and C++ integration

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dkd903
Forum Newbie
Posts: 1
Joined: Fri Mar 21, 2008 4:59 am

PHP and C++ integration

Post by dkd903 »

Hi! I am planning a project portal for our college`s local coding contests, wherein a user can submit code into the site, the code is then sent by php to a c++ compiler, most probably gcc, and then gcc sends back the errors or the compiled results to the user. So, now can ne1 help me out with this integration of PHP and C++, ne resource would be helpful.

cheers,
dkd903
Rovas
Forum Contributor
Posts: 272
Joined: Mon Aug 21, 2006 7:09 am
Location: Romania

Re: PHP and C++ integration

Post by Rovas »

Try this function exec. Remember that you also protect the site so be carefull with the privileges given to the folder for the files and the files uploaded by the user.
Post Reply