cvs: phpdoc-ro /reference/mysql/functions mysql-close.xml

From: Date: Tue, 03 Jun 2008 13:46:41 +0000
Subject: cvs: phpdoc-ro /reference/mysql/functions mysql-close.xml
Groups: php.doc.ro 
Request: Send a blank email to doc-ro+get-464@lists.php.net to get a copy of this message
simionea Tue Jun 3 13:46:41 2008 UTC Modified files: /phpdoc-ro/reference/mysql/functions mysql-close.xml Log: Updated the file. http://cvs.php.net/viewvc.cgi/phpdoc-ro/reference/mysql/functions/mysql-close.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-ro/reference/mysql/functions/mysql-close.xml diff -u phpdoc-ro/reference/mysql/functions/mysql-close.xml:1.3 phpdoc-ro/reference/mysql/functions/mysql-close.xml:1.4 --- phpdoc-ro/reference/mysql/functions/mysql-close.xml:1.3 Tue Sep 18 13:55:20 2007 +++ phpdoc-ro/reference/mysql/functions/mysql-close.xml Tue Jun 3 13:46:41 2008 @@ -1,69 +1,97 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.0 Maintainer: zamolxe Status: outdated --> -<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --> - <refentry xml:id="function.mysql-close" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>mysql_close</refname> - <refpurpose>Inchide conexiunea la MySQL</refpurpose> - </refnamediv> - <refsect1> - <title>Descriere</title> - <methodsynopsis> - <type>bool</type><methodname>mysql_close</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> - <para> - &return.success; - </para> - <para> <function>mysql_close</function> inchide conexiunea - stabilita cu un server MySQL asociata cu identificatorul - oferit ca argument. - Daca <parameter>link_identifier</parameter> nu este specificat - este considerat imlicit ultima conexiune stabilita cu serverul. - </para> - <para> - De obicei folosirea functiei <function>mysql_close</function> nu - este necesara deoarece conexiunile stabilite prin - <function>mysql_connect</function> nu sunt durabile si deci - vor fi automat inchise la sfarsitul executiei scriptului. - Vedeti de asemenea - <link linkend="language.types.resource.self-destruct"> - eliberarea resurselor - </link>. - </para> - <note> - <para> - <function>mysql_close</function> nu va inchide o conexiune - durabila stabilita cu functia - <function>mysql_pconnect</function>. - </para> - </note> - <para> - <example> - <title>Exemplu <function>mysql_close</function></title> - <programlisting role="php"> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.12 Maintainer: simionea Status: translated --> +<!-- CREDITS: zamolxe --> +<refentry xml:id="function.mysql-close" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>mysql_close</refname> + <refpurpose>Închide conexiunea MySQL</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>mysql_close</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> + <para> + <function>mysql_close</function> închide conexiunea non-persistentă către + serverul MySQL, care este asociată cu identificatorul conexiunii specificat. + Dacă <parameter>link_identifier</parameter> nu este specificat, este + utilizată ultima conexiune deschisă. + </para> + <para> + Utilizarea <function>mysql_close</function> de obicei nu este necesară + deoarece conexiunile non-persistente deschise sunt închise în mod automat + la sfârşitul execuţiei script-ului. Vedeţi de asemenea + <link linkend="language.types.resource.self-destruct">eliberarea + resurselor</link>. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + &mysql.linkid.description; + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemplu <function>mysql_close</function></title> + <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); if (!$link) { - die('Nu am putut stabili conexiunea: ' . mysql_error()); + die('Conexiunea a eşuat: ' . mysql_error()); } -echo 'Conexiunea realizata'; +echo 'Conexiunea a fost realizată cu succes'; mysql_close($link); ?> ]]> - </programlisting> - </example> - </para> - <para> - Vedeti de asemenea <function>mysql_connect</function> si - <function>mysql_pconnect</function>. - </para> - </refsect1> - </refentry> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +Conexiunea a fost realizată cu succes +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <note> + <para> + <function>mysql_close</function> nu va închide conexiuni persistente create + cu <function>mysql_pconnect</function>. + </para> + </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>mysql_connect</function></member> + <member><function>mysql_free_result</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:

« previous php.doc.ro (#464) next »