I'm developing a web application with Symfony2 for the first time. I have a form and a python script. I need to execute the python script with the values filled in the form. For example, the user enter his file, I execute my script on this file and I return the results in files that the user can download.
I wanted to know what is the best way to do this properly ? Do I have to create a Service or something like that ? Will I use the exec() function ?
Another (maybe stupid) question, where do I put my python script in the Symfony application ?
Thanks in advance for your answer !