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? 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. 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? Link to comment https://forums.phpfreaks.com/topic/54703-inter-script-communication/#findComment-270543 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.