Joke Collection Website - Blessing messages - How to terminate the running program immediately-technical question and answer

How to terminate the running program immediately-technical question and answer

A friend's plan on the fifth floor is ok. Press the button to change a value, which will be stored in memory, files and databases. You can read this value in the loop at will. If it is 0, it ends; if it is 1, it continues. In addition, in linux, you can try to get PID with getmypid (), and then kill the process with shell_exec.