Running a C language program in PHP using proc_open

时间:2016-08-31 16:49:26

标签: php c gcc

I am using proc_open to run the command : gcc filename.c -o filename1 to compile the C program.

And then the command : ./filename1 to execute the program.

Is it the right way to implement a simple C Compiler in PHP?

Please inform me about the possible security issues and how to fix them.

0 个答案:

没有答案