PHP COM accessing names.nsf

Hi,

I need to access the domino address book from my webserver using php.

I read about the fastest and easiest way would be using COM, so I started with it.

The help file put me on the right way, so I think I’m able to read “any” view of a notes database.

But how can I read (and print out) all the entries of the persons of the server address book names.nsf?

I found the groups view, but was only able to print out two groups??

Here’s my current code:

$db = $session->getDatabase( “”, “names.nsf” );

$view = $db->getView( “Groups” );

$doc = $view->getFirstDocument();

while (is_object($doc)) {

$field=$doc->GetFirstItem( "ListName" ); 

$fieldvalue=$field->text;

echo "Name: " . $fieldvalue . "<br>\n";

$doc = $view->getNextDocument($doc);

}

$session = null;

Could anyone support me with a short sample code how to print out the personal address of each person? Or to print out the data of a specific person?

A heap of thanks in advance.