Can anyone help me with the compilation of C++ code in PHP on the Windows platform? I am using Microsoft Visual C++ 6.0.
I have tried the following options which I knew, but none of them work:
system('test.c')
exec('test.c')
The file 'test.c' has been placed in my php/www/ folder.
I need to first compile the code, which makes test.exe and then using exec( ) I need to run the exe file.
Edit:
In this code "test.c", I am reading from a file "data.txt". The contents of data.txt is changed every 5 seconds. That's why first I need to compile in PHP and then run the new exe file.