While the telnet interface is clearly a better approach than the database as IPC antipattern, it has some limitations. Currently only one user is allowed to login, which can become a problem for crowded websites. Some form of queuing is needed serverside. Another issue is the missing specification; you can hardly say if an output of a command ended or if other lines will follow, which makes automated use of the telnet interface difficult.
In order to eliminate these restrictions, I started to implement a SOAP interface. After authenticating, you will send your commands encapsulate in a SOAP request. You will either receive a success message or a SOAP fault message. Handling things with this will be far more easy, expect a fiveliner in php
It's in an early state of development, but if you're interested you might want to have a look at it:
http://github.com/arrai/mangos/commits/mangossoap