In your example you don't login.
The correct sequence to create a room should be:
$pc_acccount = new CocomoAccount("
http://connectnow.acrobat.com/cyberview/");$pc_account->login($username, $password);
$pc_account->createRoom($roomName);
/* or */
$pc_account->createRoom($roomName, $template);
The external authentication example for php shows you some
real code, but it's specific to external authentication.
Also, for each language, php included, there is a "main"
application (bottom of the script) that allow you to use the script
as a standalone (commandline) application to manage your account,
but it will also show how to use the different APIs.
In this particular case look at lines 613-614 for getting the
CocomoAccount object and line 629 for room creation.