Im trying to execute a program through PHP that will run indefinatly in the background while having nothing to do with the browser that initiated it. I want to later be able to stop that process. The only idea that came to mind was executing the program and returning the process id. I have searched on google and read through the php manual I cant find any function or command line operations to return the process id of an execution I instantiate. Any suggestions are greatly appreciated. I dont mind if it works for windows or linux...