Page 1 of 1

PHP and C++ integration

Posted: Fri Mar 21, 2008 5:45 am
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

Re: PHP and C++ integration

Posted: Fri Mar 21, 2008 9:33 am
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.