PHP class for Webtext API - PHP4 and PHP5