PDA

View Full Version : a CGI issue


Laze
03-06-2008, 06:24 AM
Hello,

On a Shared Hosting: will I be able to compile my C++ sources and use the binary as a CGI program?

I would run the compiler and set the executable privileges via the exec() function from my php script. So the question is, is it allowed to run C++|CPP and chmod via exec() in php.

(I presume it’s possible to run a php script as a CGI process under restricted user privileges)

Ray
03-07-2008, 01:15 PM
Due to security concerns, PHP's exec() function is unavailable, I believe. This was the case previously, and I would doubt that it has changed recently.