I think you're looking for the
fsockopen() command.
The link takes you to the PHP documentation and in the comments for that command one Telnet connection is documented and another is commented upon.
IMHO you should:
1. Write an interface to the southware server using the telnet link
2. Let your scripts use the interface to access the database information.
I don't know how southware works, but depending on it's output you could have a hard time "decoding" it into useable format.