cvs: phpdoc-ro /reference/mysql/functions mysql-change-user.xml mysql-client-encoding.xml mysql-close.xml

From: Date: Wed, 27 Oct 2004 07:42:04 +0000
Subject: cvs: phpdoc-ro /reference/mysql/functions mysql-change-user.xml mysql-client-encoding.xml mysql-close.xml
Groups: php.doc.ro 
Request: Send a blank email to doc-ro+get-138@lists.php.net to get a copy of this message
radical Wed Oct 27 03:42:04 2004 EDT Added files: /phpdoc-ro/reference/mysql/functions mysql-change-user.xml mysql-client-encoding.xml mysql-close.xml Log: Traducere efectuata. http://cvs.php.net/co.php/phpdoc-ro/reference/mysql/functions/mysql-change-user.xml?r=1.1&p=1 Index: phpdoc-ro/reference/mysql/functions/mysql-change-user.xml +++ phpdoc-ro/reference/mysql/functions/mysql-change-user.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --> <refentry id="function.mysql-change-user"> <refnamediv> <refname>mysql_change_user</refname> <refpurpose> Schimba utilizatorul pentru conexiunea curenta </refpurpose> </refnamediv> <refsect1> <title>Descriere</title> <methodsynopsis> <type>int</type><methodname>mysql_change_user</methodname> <methodparam><type>string</type><parameter>user</parameter></methodparam> <methodparam><type>string</type><parameter>password</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter> database </parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter> link_identifier </parameter></methodparam> </methodsynopsis> <para> <function>mysql_change_user</function> schimba utilizatorul pentru conexiunea curenta sau pentru conexiunea oferita de parametrul optional <parameter>link_identifier</parameter>. Daca se specifica o baza de date, aceea va fi implicita dupa ce utilizatorul va fi schimbat. Daca schimbarea utilizatorului esueaza conexiunea ramane activa folosind utilizatorul folosit initial. &return.success; </para> <note> <para> Aceasta functie este scoasa din uz si este disponibila numai in PHP 3 si solicita MySQL 3.23.3 sau mai nou. </para> </note> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-ro/reference/mysql/functions/mysql-client-encoding.xml?r=1.1&p=1 Index: phpdoc-ro/reference/mysql/functions/mysql-client-encoding.xml +++ phpdoc-ro/reference/mysql/functions/mysql-client-encoding.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 --> <refentry id="function.mysql-client-encoding"> <refnamediv> <refname>mysql_client_encoding</refname> <refpurpose>Intoarce numele setului de caractere curent</refpurpose> </refnamediv> <refsect1> <title>Descriere</title> <methodsynopsis> <type>string</type><methodname>mysql_client_encoding</methodname> <methodparam choice="opt"><type>resource</type> <parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_client_encoding</function> intoarce numele setului de caractere implicit pentru conexiunea curenta. </para> <para> <example> <title>Exemplu <function>mysql_client_encoding</function></title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $charset = mysql_client_encoding($link); printf("Setul de caractere este: %s\n", $charset); ?> ]]> </programlisting> <para> Exemplul de mai sus va afisa urmatoarele: </para> <screen> <![CDATA[ Setul de caractere este: latin1 ]]> </screen> </example> </para> <para> Vedeti de asemenea <function>mysql_real_escape_string</function> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-ro/reference/mysql/functions/mysql-close.xml?r=1.1&p=1 Index: phpdoc-ro/reference/mysql/functions/mysql-close.xml +++ phpdoc-ro/reference/mysql/functions/mysql-close.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --> <refentry id="function.mysql-close"> <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"> <![CDATA[ <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); if (!$link) { die('Nu am putut stabili conexiunea: ' . mysql_error()); } echo 'Conexiunea realizata'; mysql_close($link); ?> ]]> </programlisting> </example> </para> <para> Vedeti de asemenea <function>mysql_connect</function> si <function>mysql_pconnect</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

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