Here is my problem, I have a Python script that will be running indefinitely in a while(1) loop. I want some PHP script to somehow interact with the Python script, and when it does, the script needs to perform a function with the data submitted to the script.
Any ideas would be appreciated!
If the same machine, you can use file with command. Create a file cmd.txt , python will read it in loop every sec, Php script will write a command in file cmd.txt , python will do the job and erase the command from cmd.txt
Sending data to Python Script from PHP