source: www/manuals/PHP_manual/function.udm-alloc-agent.html@ 1

Last change on this file since 1 was 1, checked in by george, 17 years ago

Prvotní import všeho

File size: 4.4 KB
Line 
1<HTML
2><HEAD
3><TITLE
4>udm_alloc_agent</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
8REL="HOME"
9TITLE="Manuál PHP"
10HREF="index.html"><LINK
11REL="UP"
12TITLE="mnoGoSearch Functions"
13HREF="ref.mnogo.html"><LINK
14REL="PREVIOUS"
15TITLE="udm_add_search_limit"
16HREF="function.udm-add-search-limit.html"><LINK
17REL="NEXT"
18TITLE="udm_api_version"
19HREF="function.udm-api-version.html"><META
20HTTP-EQUIV="Content-type"
21CONTENT="text/html; charset=ISO-8859-2"></HEAD
22><BODY
23CLASS="refentry"
24BGCOLOR="#FFFFFF"
25TEXT="#000000"
26LINK="#0000FF"
27VLINK="#840084"
28ALINK="#0000FF"
29><DIV
30CLASS="NAVHEADER"
31><TABLE
32SUMMARY="Header navigation table"
33WIDTH="100%"
34BORDER="0"
35CELLPADDING="0"
36CELLSPACING="0"
37><TR
38><TH
39COLSPAN="3"
40ALIGN="center"
41>Manuál PHP</TH
42></TR
43><TR
44><TD
45WIDTH="10%"
46ALIGN="left"
47VALIGN="bottom"
48><A
49HREF="function.udm-add-search-limit.html"
50ACCESSKEY="P"
51>Pøedcházející</A
52></TD
53><TD
54WIDTH="80%"
55ALIGN="center"
56VALIGN="bottom"
57></TD
58><TD
59WIDTH="10%"
60ALIGN="right"
61VALIGN="bottom"
62><A
63HREF="function.udm-api-version.html"
64ACCESSKEY="N"
65>Dal¹í</A
66></TD
67></TR
68></TABLE
69><HR
70ALIGN="LEFT"
71WIDTH="100%"></DIV
72><H1
73><A
74NAME="function.udm-alloc-agent"
75></A
76>udm_alloc_agent</H1
77><DIV
78CLASS="refnamediv"
79><A
80NAME="AEN52304"
81></A
82><P
83> (PHP 4 &#62;= 4.0.5)</P
84>udm_alloc_agent&nbsp;--&nbsp;Allocate mnoGoSearch session</DIV
85><DIV
86CLASS="refsect1"
87><A
88NAME="AEN52307"
89></A
90><H2
91>Description</H2
92>int <B
93CLASS="methodname"
94>udm_alloc_agent</B
95> ( string dbaddr [, string dbmode])<BR
96></BR
97><P
98><B
99CLASS="function"
100>udm_alloc_agent()</B
101> returns mnogosearch agent
102 identifier on success, <TT
103CLASS="constant"
104><B
105>FALSE</B
106></TT
107> on error. This function creates a
108 session with database parameters.
109 </P
110><P
111>&#13; <TT
112CLASS="parameter"
113><I
114>dbaddr</I
115></TT
116> - URL-style database description.
117 Options (type, host, database name, port, user and password) to connect
118 to SQL database. Do not matter for built-in text files support. Format:
119 DBAddr DBType:[//[DBUser[:DBPass]@]DBHost[:DBPort]]/DBName/ Currently
120 supported DBType values are: mysql, pgsql, msql, solid, mssql, oracle,
121 ibase. Actually, it does not matter for native libraries support.
122 But ODBC users should specify one of supported values. If your database
123 type is not supported, you may use "unknown" instead.
124 </P
125><P
126>&#13; <TT
127CLASS="parameter"
128><I
129>dbmode</I
130></TT
131> - You may select SQL database mode of
132 words storage. When "single" is specified, all words are stored in the same
133 table. If "multi" is selected, words will be located in different tables
134 depending of their lengths. "multi" mode is usually faster but requires
135 more tables in database. If "crc" mode is selected, mnoGoSearch will
136 store 32 bit integer word IDs calculated by CRC32 algorythm instead of
137 words. This mode requres less disk space and it is faster comparing with "single"
138 and "multi" modes. "crc-multi" uses the same storage structure with the
139 "crc" mode, but also stores words in different tables depending on
140 words lengths like "multi" mode. Format: DBMode single/multi/crc/crc-multi</P
141><DIV
142CLASS="note"
143><BLOCKQUOTE
144CLASS="note"
145><P
146><B
147>Poznámka: </B
148>
149 <TT
150CLASS="parameter"
151><I
152>dbaddr</I
153></TT
154> and <TT
155CLASS="parameter"
156><I
157>dbmode</I
158></TT
159> must match
160 those used during indexing.
161 </P
162></BLOCKQUOTE
163></DIV
164><DIV
165CLASS="note"
166><BLOCKQUOTE
167CLASS="note"
168><P
169><B
170>Poznámka: </B
171>
172 In fact this function does not open connection to database and
173 thus does not check entered login and password. Actual connection to
174 database and login/password verification is done by <A
175HREF="function.udm-find.html"
176><B
177CLASS="function"
178>udm_find()</B
179></A
180>.
181 </P
182></BLOCKQUOTE
183></DIV
184></DIV
185><DIV
186CLASS="NAVFOOTER"
187><HR
188ALIGN="LEFT"
189WIDTH="100%"><TABLE
190SUMMARY="Footer navigation table"
191WIDTH="100%"
192BORDER="0"
193CELLPADDING="0"
194CELLSPACING="0"
195><TR
196><TD
197WIDTH="33%"
198ALIGN="left"
199VALIGN="top"
200><A
201HREF="function.udm-add-search-limit.html"
202ACCESSKEY="P"
203>Pøedcházející</A
204></TD
205><TD
206WIDTH="34%"
207ALIGN="center"
208VALIGN="top"
209><A
210HREF="index.html"
211ACCESSKEY="H"
212>Domù</A
213></TD
214><TD
215WIDTH="33%"
216ALIGN="right"
217VALIGN="top"
218><A
219HREF="function.udm-api-version.html"
220ACCESSKEY="N"
221>Dal¹í</A
222></TD
223></TR
224><TR
225><TD
226WIDTH="33%"
227ALIGN="left"
228VALIGN="top"
229>udm_add_search_limit</TD
230><TD
231WIDTH="34%"
232ALIGN="center"
233VALIGN="top"
234><A
235HREF="ref.mnogo.html"
236ACCESSKEY="U"
237>Nahoru</A
238></TD
239><TD
240WIDTH="33%"
241ALIGN="right"
242VALIGN="top"
243>udm_api_version</TD
244></TR
245></TABLE
246></DIV
247></BODY
248></HTML
249>
Note: See TracBrowser for help on using the repository browser.