For me (PHP 4.3.3, Mnogo 3.2.15 on FreeBSD) Mnogo doesn't work as described - but very well if done as in the PHP-template distributed by MnogoSearch
I had huge problems getting Udm_Find(... to return anything at all.
All the other calls worked, like udm_get_doc_count(... but _find seemed to insist on returning nothing, no matter what I tried.
However, I had actually a working installation of mnogo, using the PHP template, so it was just to find the difference in the, BTW impressive, work by Sergey 'gluke' Kartashoff.
The result was surprising, see below. The parameter UDM_PARAM_QUERY is not mentioned in the manual
<?php
$q="help";
$udm_agent
=Udm_Alloc_Agent('pgsql://me:secret@/mnogo_db/?dbmode=multi');
$iDoItAsInTheManual = true; if ($iDoItAsInTheManual)
{
$res=Udm_Find($udm_agent, $q);
}
else
{
Udm_Set_Agent_Param($udm_agent,UDM_PARAM_QUERY,$q);
$res=Udm_Find($udm_agent,"anything here, makes no difference!!");
}
$url = udm_get_res_field(
$res, 0, UDM_FIELD_URL );
echo $url;
?>
I don't know where something has gone wrong but I hope this may help someone save a little time.