1 | <HTML
|
---|
2 | ><HEAD
|
---|
3 | ><TITLE
|
---|
4 | >ibase_pconnect</TITLE
|
---|
5 | ><META
|
---|
6 | NAME="GENERATOR"
|
---|
7 | CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
---|
8 | REL="HOME"
|
---|
9 | TITLE="Manuál PHP"
|
---|
10 | HREF="index.html"><LINK
|
---|
11 | REL="UP"
|
---|
12 | TITLE="InterBase functions"
|
---|
13 | HREF="ref.ibase.html"><LINK
|
---|
14 | REL="PREVIOUS"
|
---|
15 | TITLE="ibase_num_fields"
|
---|
16 | HREF="function.ibase-num-fields.html"><LINK
|
---|
17 | REL="NEXT"
|
---|
18 | TITLE="ibase_prepare"
|
---|
19 | HREF="function.ibase-prepare.html"><META
|
---|
20 | HTTP-EQUIV="Content-type"
|
---|
21 | CONTENT="text/html; charset=ISO-8859-2"></HEAD
|
---|
22 | ><BODY
|
---|
23 | CLASS="refentry"
|
---|
24 | BGCOLOR="#FFFFFF"
|
---|
25 | TEXT="#000000"
|
---|
26 | LINK="#0000FF"
|
---|
27 | VLINK="#840084"
|
---|
28 | ALINK="#0000FF"
|
---|
29 | ><DIV
|
---|
30 | CLASS="NAVHEADER"
|
---|
31 | ><TABLE
|
---|
32 | SUMMARY="Header navigation table"
|
---|
33 | WIDTH="100%"
|
---|
34 | BORDER="0"
|
---|
35 | CELLPADDING="0"
|
---|
36 | CELLSPACING="0"
|
---|
37 | ><TR
|
---|
38 | ><TH
|
---|
39 | COLSPAN="3"
|
---|
40 | ALIGN="center"
|
---|
41 | >Manuál PHP</TH
|
---|
42 | ></TR
|
---|
43 | ><TR
|
---|
44 | ><TD
|
---|
45 | WIDTH="10%"
|
---|
46 | ALIGN="left"
|
---|
47 | VALIGN="bottom"
|
---|
48 | ><A
|
---|
49 | HREF="function.ibase-num-fields.html"
|
---|
50 | ACCESSKEY="P"
|
---|
51 | >Pøedcházející</A
|
---|
52 | ></TD
|
---|
53 | ><TD
|
---|
54 | WIDTH="80%"
|
---|
55 | ALIGN="center"
|
---|
56 | VALIGN="bottom"
|
---|
57 | ></TD
|
---|
58 | ><TD
|
---|
59 | WIDTH="10%"
|
---|
60 | ALIGN="right"
|
---|
61 | VALIGN="bottom"
|
---|
62 | ><A
|
---|
63 | HREF="function.ibase-prepare.html"
|
---|
64 | ACCESSKEY="N"
|
---|
65 | >Dal¹í</A
|
---|
66 | ></TD
|
---|
67 | ></TR
|
---|
68 | ></TABLE
|
---|
69 | ><HR
|
---|
70 | ALIGN="LEFT"
|
---|
71 | WIDTH="100%"></DIV
|
---|
72 | ><H1
|
---|
73 | ><A
|
---|
74 | NAME="function.ibase-pconnect"
|
---|
75 | ></A
|
---|
76 | >ibase_pconnect</H1
|
---|
77 | ><DIV
|
---|
78 | CLASS="refnamediv"
|
---|
79 | ><A
|
---|
80 | NAME="AEN36971"
|
---|
81 | ></A
|
---|
82 | ><P
|
---|
83 | > (PHP 3>= 3.0.6, PHP 4 )</P
|
---|
84 | >ibase_pconnect --
|
---|
85 | Creates an persistent connection to an InterBase database
|
---|
86 | </DIV
|
---|
87 | ><DIV
|
---|
88 | CLASS="refsect1"
|
---|
89 | ><A
|
---|
90 | NAME="AEN36974"
|
---|
91 | ></A
|
---|
92 | ><H2
|
---|
93 | >Description</H2
|
---|
94 | >int <B
|
---|
95 | CLASS="methodname"
|
---|
96 | >ibase_pconnect</B
|
---|
97 | > ( string database [, string username [, string password [, string charset [, int buffers [, int dialect [, string role]]]]]])<BR
|
---|
98 | ></BR
|
---|
99 | ><P
|
---|
100 | > <B
|
---|
101 | CLASS="function"
|
---|
102 | >ibase_pconnect()</B
|
---|
103 | > acts very much like
|
---|
104 | <A
|
---|
105 | HREF="function.ibase-connect.html"
|
---|
106 | ><B
|
---|
107 | CLASS="function"
|
---|
108 | >ibase_connect()</B
|
---|
109 | ></A
|
---|
110 | > with two major differences.
|
---|
111 | First, when connecting, the function will first try to find a
|
---|
112 | (persistent) link that's already opened with the same parameters.
|
---|
113 | If one is found, an identifier for it will be returned instead of
|
---|
114 | opening a new connection. Second, the connection to the InterBase
|
---|
115 | server will not be closed when the execution of the script ends.
|
---|
116 | Instead, the link will remain open for future use
|
---|
117 | (<A
|
---|
118 | HREF="function.ibase-close.html"
|
---|
119 | ><B
|
---|
120 | CLASS="function"
|
---|
121 | >ibase_close()</B
|
---|
122 | ></A
|
---|
123 | > will not close links established
|
---|
124 | by <B
|
---|
125 | CLASS="function"
|
---|
126 | >ibase_pconnect()</B
|
---|
127 | >). This type of link is
|
---|
128 | therefore called 'persistent'.
|
---|
129 | </P
|
---|
130 | ><DIV
|
---|
131 | CLASS="note"
|
---|
132 | ><BLOCKQUOTE
|
---|
133 | CLASS="note"
|
---|
134 | ><P
|
---|
135 | ><B
|
---|
136 | >Poznámka: </B
|
---|
137 | >
|
---|
138 | <TT
|
---|
139 | CLASS="parameter"
|
---|
140 | ><I
|
---|
141 | >buffers</I
|
---|
142 | ></TT
|
---|
143 | > was added in PHP4-RC2.
|
---|
144 | </P
|
---|
145 | ></BLOCKQUOTE
|
---|
146 | ></DIV
|
---|
147 | ><DIV
|
---|
148 | CLASS="note"
|
---|
149 | ><BLOCKQUOTE
|
---|
150 | CLASS="note"
|
---|
151 | ><P
|
---|
152 | ><B
|
---|
153 | >Poznámka: </B
|
---|
154 | >
|
---|
155 | <TT
|
---|
156 | CLASS="parameter"
|
---|
157 | ><I
|
---|
158 | >dialect</I
|
---|
159 | ></TT
|
---|
160 | > was added in PHP4-RC2. It is functional
|
---|
161 | only with InterBase 6 and versions higher than that.
|
---|
162 | </P
|
---|
163 | ></BLOCKQUOTE
|
---|
164 | ></DIV
|
---|
165 | ><DIV
|
---|
166 | CLASS="note"
|
---|
167 | ><BLOCKQUOTE
|
---|
168 | CLASS="note"
|
---|
169 | ><P
|
---|
170 | ><B
|
---|
171 | >Poznámka: </B
|
---|
172 | >
|
---|
173 | <TT
|
---|
174 | CLASS="parameter"
|
---|
175 | ><I
|
---|
176 | >role</I
|
---|
177 | ></TT
|
---|
178 | > was added in PHP4-RC2. It is functional
|
---|
179 | only with InterBase 5 and versions higher than that.
|
---|
180 | </P
|
---|
181 | ></BLOCKQUOTE
|
---|
182 | ></DIV
|
---|
183 | ><P
|
---|
184 | > See also <A
|
---|
185 | HREF="function.ibase-connect.html"
|
---|
186 | ><B
|
---|
187 | CLASS="function"
|
---|
188 | >ibase_connect()</B
|
---|
189 | ></A
|
---|
190 | > for the meaning of
|
---|
191 | parameters passed to this function. They are exactly the same.
|
---|
192 | </P
|
---|
193 | ></DIV
|
---|
194 | ><DIV
|
---|
195 | CLASS="NAVFOOTER"
|
---|
196 | ><HR
|
---|
197 | ALIGN="LEFT"
|
---|
198 | WIDTH="100%"><TABLE
|
---|
199 | SUMMARY="Footer navigation table"
|
---|
200 | WIDTH="100%"
|
---|
201 | BORDER="0"
|
---|
202 | CELLPADDING="0"
|
---|
203 | CELLSPACING="0"
|
---|
204 | ><TR
|
---|
205 | ><TD
|
---|
206 | WIDTH="33%"
|
---|
207 | ALIGN="left"
|
---|
208 | VALIGN="top"
|
---|
209 | ><A
|
---|
210 | HREF="function.ibase-num-fields.html"
|
---|
211 | ACCESSKEY="P"
|
---|
212 | >Pøedcházející</A
|
---|
213 | ></TD
|
---|
214 | ><TD
|
---|
215 | WIDTH="34%"
|
---|
216 | ALIGN="center"
|
---|
217 | VALIGN="top"
|
---|
218 | ><A
|
---|
219 | HREF="index.html"
|
---|
220 | ACCESSKEY="H"
|
---|
221 | >Domù</A
|
---|
222 | ></TD
|
---|
223 | ><TD
|
---|
224 | WIDTH="33%"
|
---|
225 | ALIGN="right"
|
---|
226 | VALIGN="top"
|
---|
227 | ><A
|
---|
228 | HREF="function.ibase-prepare.html"
|
---|
229 | ACCESSKEY="N"
|
---|
230 | >Dal¹í</A
|
---|
231 | ></TD
|
---|
232 | ></TR
|
---|
233 | ><TR
|
---|
234 | ><TD
|
---|
235 | WIDTH="33%"
|
---|
236 | ALIGN="left"
|
---|
237 | VALIGN="top"
|
---|
238 | >ibase_num_fields</TD
|
---|
239 | ><TD
|
---|
240 | WIDTH="34%"
|
---|
241 | ALIGN="center"
|
---|
242 | VALIGN="top"
|
---|
243 | ><A
|
---|
244 | HREF="ref.ibase.html"
|
---|
245 | ACCESSKEY="U"
|
---|
246 | >Nahoru</A
|
---|
247 | ></TD
|
---|
248 | ><TD
|
---|
249 | WIDTH="33%"
|
---|
250 | ALIGN="right"
|
---|
251 | VALIGN="top"
|
---|
252 | >ibase_prepare</TD
|
---|
253 | ></TR
|
---|
254 | ></TABLE
|
---|
255 | ></DIV
|
---|
256 | ></BODY
|
---|
257 | ></HTML
|
---|
258 | >
|
---|