source: www/manuals/PHP_manual/function.sesam-disconnect.html@ 1

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

Prvotní import všeho

File size: 3.7 KB
Line 
1<HTML
2><HEAD
3><TITLE
4>sesam_disconnect</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="SESAM database functions"
13HREF="ref.sesam.html"><LINK
14REL="PREVIOUS"
15TITLE="sesam_diagnostic"
16HREF="function.sesam-diagnostic.html"><LINK
17REL="NEXT"
18TITLE="sesam_errormsg"
19HREF="function.sesam-errormsg.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.sesam-diagnostic.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.sesam-errormsg.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.sesam-disconnect"
75></A
76>sesam_disconnect</H1
77><DIV
78CLASS="refnamediv"
79><A
80NAME="AEN76595"
81></A
82><P
83> (PHP 3 CVS only)</P
84>sesam_disconnect&nbsp;--&nbsp;Detach from SESAM connection</DIV
85><DIV
86CLASS="refsect1"
87><A
88NAME="AEN76598"
89></A
90><H2
91>Description</H2
92>bool <B
93CLASS="methodname"
94>sesam_disconnect</B
95> ( void)<BR
96></BR
97><P
98>&#13; Returns: always <TT
99CLASS="constant"
100><B
101>TRUE</B
102></TT
103>.
104 </P
105><P
106>&#13; <B
107CLASS="function"
108>sesam_disconnect()</B
109> closes the logical link to
110 a SESAM database (without actually disconnecting and unloading
111 the driver).
112 </P
113><P
114>&#13; Note that this isn't usually necessary, as the open connection is
115 automatically closed at the end of the script's execution.
116 Uncommitted data will be discarded, because an implicit
117 <A
118HREF="function.sesam-rollback.html"
119><B
120CLASS="function"
121>sesam_rollback()</B
122></A
123> is executed.
124 </P
125><P
126>&#13; <B
127CLASS="function"
128>sesam_disconnect()</B
129> will not close the
130 persistent link, it will only invalidate the currently defined
131 <TT
132CLASS="parameter"
133><I
134>"catalog"</I
135></TT
136>, <TT
137CLASS="parameter"
138><I
139>"schema"</I
140></TT
141>
142 and <TT
143CLASS="parameter"
144><I
145>"user"</I
146></TT
147> triple, so that any sesam
148 function called after <B
149CLASS="function"
150>sesam_disconnect()</B
151> will
152 fail.
153 </P
154><P
155>&#13; See also: <A
156HREF="function.sesam-connect.html"
157><B
158CLASS="function"
159>sesam_connect()</B
160></A
161>.
162 <TABLE
163WIDTH="100%"
164BORDER="0"
165CELLPADDING="0"
166CELLSPACING="0"
167CLASS="EXAMPLE"
168><TR
169><TD
170><DIV
171CLASS="example"
172><A
173NAME="AEN76618"
174></A
175><P
176><B
177>Pøíklad 1. Closing a SESAM connection</B
178></P
179><TABLE
180BORDER="0"
181BGCOLOR="#E0E0E0"
182CELLPADDING="5"
183><TR
184><TD
185><PRE
186CLASS="php"
187>if (sesam_connect ("mycatalog", "myschema", "otto")) {
188 ... some queries and stuff ...
189 sesam_disconnect();
190}</PRE
191></TD
192></TR
193></TABLE
194></DIV
195></TD
196></TR
197></TABLE
198>
199 </P
200></DIV
201><DIV
202CLASS="NAVFOOTER"
203><HR
204ALIGN="LEFT"
205WIDTH="100%"><TABLE
206SUMMARY="Footer navigation table"
207WIDTH="100%"
208BORDER="0"
209CELLPADDING="0"
210CELLSPACING="0"
211><TR
212><TD
213WIDTH="33%"
214ALIGN="left"
215VALIGN="top"
216><A
217HREF="function.sesam-diagnostic.html"
218ACCESSKEY="P"
219>Pøedcházející</A
220></TD
221><TD
222WIDTH="34%"
223ALIGN="center"
224VALIGN="top"
225><A
226HREF="index.html"
227ACCESSKEY="H"
228>Domù</A
229></TD
230><TD
231WIDTH="33%"
232ALIGN="right"
233VALIGN="top"
234><A
235HREF="function.sesam-errormsg.html"
236ACCESSKEY="N"
237>Dal¹í</A
238></TD
239></TR
240><TR
241><TD
242WIDTH="33%"
243ALIGN="left"
244VALIGN="top"
245>sesam_diagnostic</TD
246><TD
247WIDTH="34%"
248ALIGN="center"
249VALIGN="top"
250><A
251HREF="ref.sesam.html"
252ACCESSKEY="U"
253>Nahoru</A
254></TD
255><TD
256WIDTH="33%"
257ALIGN="right"
258VALIGN="top"
259>sesam_errormsg</TD
260></TR
261></TABLE
262></DIV
263></BODY
264></HTML
265>
Note: See TracBrowser for help on using the repository browser.