2 Topics

Member Avatar for
Member Avatar for sharmilli

function compile() { $a=shell_exec('gcc -o Compile Compile.c'); echo $a; $b=shell_exec('./Compile'); echo $b; } I tried to call the above compile function from the directory /var/www/. I could get the result by manual execution of gcc command but i could not create an executable file by running the same command from …

Member Avatar for vars
0
923
Member Avatar for Usernamex235

Hi All, thanks in advance for any replies. Environment: PHP5, MySQL, Windows XP/Server 2000/Server 2003. Problem: Using shell_exec to run a small program connected to a database, waiting for it to finish and then outputting a file which was produced. All was fine until I got a new and larger …

0
154

The End.