mridang_agarwal Posted June 8, 2007 Share Posted June 8, 2007 i have a PHP script which runs in the background. It is started from another script. Is there any way to accomplish inter-script communication? The background script downloads a file using cURL. I want my frontend script to query the background script on its progress? Quote Link to comment https://forums.phpfreaks.com/topic/54703-inter-script-communication/ Share on other sites More sharing options...
btherl Posted June 8, 2007 Share Posted June 8, 2007 You can use normal files, sockets, pipes, tcp connections, shared memory. I would go for files for simplicity if possible. They are the easiest to deal with. For example, your background script can regularly write its progress to a specific file, and your front end can poll that file. Quote Link to comment https://forums.phpfreaks.com/topic/54703-inter-script-communication/#findComment-270536 Share on other sites More sharing options...
mridang_agarwal Posted June 8, 2007 Author Share Posted June 8, 2007 Sweet! I was thinking on something on those lines too but I chose sockets. hows would i know which port to connect to. is there any example i could see? Quote Link to comment https://forums.phpfreaks.com/topic/54703-inter-script-communication/#findComment-270543 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.