I found a little bit of documentation here: http://php.net/manual/en/function.posix-setpgid.php http://www.php.net/manual/en/function.posix-getpgid.php
But I really am not sure how to do this. I have a folder with php scripts. When I click a button, one or more of the scripts will run. Now what I need is quite common, I think- but I don't know how to do it: I want to identify which of the scripts is running and display a proper message. For example if apple.php
is currently the script running, I would want attach a message to my progressbar saying: "Eating apple, please wait..." or so.
When the script is complete, the next script might be berries.php
and the message "Eating berries, please wait".
I guess what I need to do would be to give an id or tag to each of the scripts and somehow identify them by the id, and display the message. Also, as I can see in the documentation, there is some kind of group id, for example "feeding actions" that can be set. Since running those scripts will be triggered by clicking a single button, I would like to set a group name for those scripts.
Maybe it is more simple than that, but this is what came into my mind for now.