Hi, I'm currently working on a project using PHP to develop a judge where my colleagues can send solutions to exercises that are typically from a basic programming course. All solutions must be written in python.
The code is executed in exec()
and then the user's output is stored in a .txt file. Later the system reads that file and compares it with a .txt file that has the correct outputs.
The problem is that I can not know when TLE occurs. When a user sends a python file with an infinite buble for example, the web page hangs.
If you have some tip or similar experience I would appreciate it very much.