PHP4 Queue Server

57 views Asked by At

I've been looking at this PHP queue server : http://squirrelshaterobots.com/programming/php/building-a-queue-server-in-php-part-1-understanding-the-project/

This looks pretty good but the issue is I'm stuck on a very old defunct PHP4 based network drive to run my script.

What I'd like to do is queue commands, that the worker script will then action. Most commands will be based on fsockopen and connect to other network devices, send them some information and the close the connection. This will repeat, but I want to do them in the order they are sent to the 'queue'.

I had wondered about having a file to send the commands to and the worker read from the top of that file list.. but I'm not sure how I would do this and if I'll get issues with the file being open by the queue or worker at the same time.

Can anyone offer some advise how I may be able to do this on this older version of PHP4.

Thanks

0

There are 0 answers