Execute the PHP instruction Compiler.exe –c inputfile.c from a webpage and parse results
$30-5000 USD
Concluído
Publicado há mais de 12 anos
$30-5000 USD
Pago na entrega
I have .exe compiler that compiles some code. It only works on windows. It uses a command like [login to view URL] -c inputfile.c where inputfile is a file name. Then it shows a text like
Compiled succeed ? Or Compiled failed ?
And creates an output file like [login to view URL] (when succeed) or [login to view URL] (when fails)
I need to execute [login to view URL] -c inputfile.c from a webpage. The server manages php. It's a hosting with a shared server (godaddy). I already tested it and ran php exec - it compiles and creates the file so the hosting is fine.
You need to create some functions in php that compile the file taking into account:
-You start with a page that has one button that says compile. It also has a variable that contains the content of the file but it is not a file. When you click on compile, the file inputfile.c should be created from the variable that has the content. Then the instruction [login to view URL] -c inputfile.c is executed and the response is shown (success or failure). Then the file is deleted from the server. If it does not fails, redirect the user to a download of the compiled file [login to view URL] - after download delete the file
-see more details in the long description
## Deliverables
Many users want to execute the compiler at the same time - I do not want a busy response, I want a system that manages the request (you need to define how - some ideas include multiple [login to view URL] in different directories, managing random name for the file, managing user sessions, etc)
-Nobody can have access to the directories where the compiler and files are located
-Your functions need to be secure to avoid security violations (someone compiling or getting files using a php hack)
With your bid, Please post a short explanation on how you plan to develop this project (technology, libraries, etc)
You will receive all compiler instructions and examples after your bid is accepted