I am developing a queue that requires communication between a php page and a php script. What I am having a difficult time with is understanding what would be a good path to take. In my queue, a user will generate a task
on a php page, and a php script has to obtain that task
and process it in a queue type fashion. I have read up that the following methods exist:
Normal files: My understanding is that the php page would create a file in a directory, while the php script would search for files in that directory and then use the information in those files to execute tasks.
Sockets: still fuzzy understanding. Something to do with sending information to a port that a script would be listening to.
Pipes: still fuzzy.
Tcp Connections: very fuzzy understanding.
Shared memory: not sure how different files would share memory. This seems very interesting, though I have no idea how it is implemented!
QUESTION: Which of these options (or any other option I am missing in my list) would you appropriate for inter script communication in php for my particular case and why? Note: The queue would probably be very active, receiving 1 task every second.
All feedback is greatly appreciated!