I'm trying to execute a few python scripts in order to manipulate some images on my website. The external program/tool is written in python and is called PHATCH. I'm under Windows and using WAMP as my web server.
Executing only just one script seems to work well, but I need to execute 4 scripts at the same time (to generate 4 different images), my browser will just load and Apache/PHP freezes.
The PHP execution seems to freeze and hung up due several system() calls after each other. Here's an example of how I'm using it:
system("C:\\python\\python.exe C:\\phatch\\phatch.py script1.phatch");
system("C:\\python\\python.exe C:\\phatch\\phatch.py script2.phatch");
system("C:\\python\\python.exe C:\\phatch\\phatch.py script3.phatch");
system("C:\\python\\python.exe C:\\phatch\\phatch.py script4.phatch");
If I only do the first one, it's fine, but as soon as I add the others, it all freezes.