Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 2764

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>udm_alloc_agent</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="mnoGoSearch Functions"
HREF="ref.mnogo.html"><LINK
REL="PREVIOUS"
TITLE="udm_add_search_limit"
HREF="function.udm-add-search-limit.html"><LINK
REL="NEXT"
TITLE="udm_api_version"
HREF="function.udm-api-version.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.udm-add-search-limit.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.udm-api-version.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.udm-alloc-agent"
></A
>udm_alloc_agent</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN56513"
></A
><P
>    (PHP 4 &#62;= 4.0.5)</P
>udm_alloc_agent&nbsp;--&nbsp;Allocate mnoGoSearch session</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN56516"
></A
><H2
>Description</H2
>int <B
CLASS="methodname"
>udm_alloc_agent</B
> ( string dbaddr [, string dbmode])<BR
></BR
><P
><B
CLASS="function"
>udm_alloc_agent()</B
> returns mnogosearch agent
    identifier on success, <TT
CLASS="constant"
><B
>FALSE</B
></TT
> on error. This function creates a
   session with database parameters.
   </P
><P
>&#13;    <TT
CLASS="parameter"
><I
>dbaddr</I
></TT
> - URL-style database description. 
    Options (type, host, database name, port, user and password) to connect 
    to SQL database. Do not matter for built-in text files support. Format:
    DBAddr DBType:[//[DBUser[:DBPass]@]DBHost[:DBPort]]/DBName/ Currently 
    supported DBType values are: mysql, pgsql, msql, solid, mssql, oracle, 
    ibase. Actually, it does not matter for native libraries support.
    But ODBC users should specify one of supported values. If your database 
    type is not supported, you may use "unknown" instead.
  </P
><P
>&#13;    <TT
CLASS="parameter"
><I
>dbmode</I
></TT
> - You may select SQL database mode of 
    words storage. When "single" is specified, all words are stored in the same
    table. If "multi" is selected, words will be located in different tables 
    depending of their lengths. "multi" mode is usually faster but requires 
    more tables in database. If "crc" mode is selected, mnoGoSearch will 
    store 32 bit integer word IDs calculated by CRC32 algorythm instead of
    words. This mode requres less disk space and it is faster comparing with "single"
    and "multi" modes. "crc-multi" uses the same storage structure with the 
    "crc" mode, but also stores words in different tables depending on
   words lengths like "multi" mode. Format: DBMode single/multi/crc/crc-multi</P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>
     <TT
CLASS="parameter"
><I
>dbaddr</I
></TT
> and <TT
CLASS="parameter"
><I
>dbmode</I
></TT
> must match 
     those used during indexing.
    </P
></BLOCKQUOTE
></DIV
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>
     In fact this function does not open connection to database and
     thus does not check entered login and password. Actual connection to 
     database and login/password verification is done by <A
HREF="function.udm-find.html"
><B
CLASS="function"
>udm_find()</B
></A
>.
    </P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.udm-add-search-limit.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.udm-api-version.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>udm_add_search_limit</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.mnogo.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>udm_api_version</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>