I\'m having a problem where putty gets regularly disconnected. So, when I run a PHP script from the terminal, it always gets interrupted. The script is supposed to run several h
You need to prevent the process from terminating when the session disconnects.
Something like this would work:
nohup php myscript.php