cvs: phpdoc-cs /reference/mysql/functions mysql-character-set-name.xml mysql-escape-string.xml mysql-info.xml mysql-list-processes.xml mysql-ping.xml
mysql-real-escape-string.xml mysql-stat.xml mysql-thread-id.xml

From: Date: Fri, 07 Jun 2002 19:42:44 +0000
Subject: cvs: phpdoc-cs /reference/mysql/functions mysql-character-set-name.xml mysql-escape-string.xml mysql-info.xml mysql-list-processes.xml mysql-ping.xml
mysql-real-escape-string.xml mysql-stat.xml mysql-thread-id.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969346243@lists.php.net to get a copy of this message
costra Fri Jun 7 15:42:44 2002 EDT Added files: /phpdoc-cs/reference/mysql/functions mysql-info.xml mysql-list-processes.xml mysql-ping.xml mysql-real-escape-string.xml mysql-stat.xml mysql-thread-id.xml Modified files: /phpdoc-cs/reference/mysql/functions mysql-character-set-name.xml mysql-escape-string.xml Log: Some fixes and new translations Modified Files: mysql-character-set-name.xml (en rev. 1.3) mysql-escape-string.xml (1.5) Added Files: mysql-info.xml (1.3) mysql-list-processes.xml (1.2) mysql-ping.xml (1.3) mysql-real-escape-string.xml (1.3) mysql-stat.xml (1.2) mysql-thread-id.xml (1.4)

Index: phpdoc-cs/reference/mysql/functions/mysql-character-set-name.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-character-set-name.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-character-set-name.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-character-set-name.xml:1.1 Thu Jun 6 17:52:12 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-character-set-name.xml Fri Jun 7 15:42:44 2002 @@ -9,8 +9,7 @@ <methodsynopsis> <type>int</type><methodname>mysql_character_set_name</methodname> <methodparam -choice="opt"><type>resource</type><parameter>spojeni</parameter></methodpa -r a m > </methodsynopsis> <para> +choice="opt"><type>resource</type><parameter>spojeni</parameter></methodparam> </methodsynopsis> <para> <function>mysql_character_set_name</function> vrací jméno výchozí znakové stránky aktuálního spojení.</para> <example> Index: phpdoc-cs/reference/mysql/functions/mysql-escape-string.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-escape-string.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-escape-string.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-escape-string.xml:1.1 Sun Apr 14 19:47:07 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-escape-string.xml Fri Jun 7 15:42:44 2002 @@ -5,7 +5,7 @@ <refnamediv> <refname>mysql_escape_string</refname> <refpurpose> - Upraví øetìzec pro pou¾ití v mysql_query. + Upraví øetìzec pro bezpeèné pou¾ití v mysql_query. </refpurpose> </refnamediv> <refsect1> @@ -16,16 +16,49 @@ <methodparam><type>string</type><parameter>neupraveny_retezec</parameter></methodparam> </methodsynopsis> <para> - Tato funkce upraví <parameter>neupraveny_retezec</parameter> pro snadné - pou¾ití v <function>mysql_query</function>. Pøed funkèní znaky jako -<literal>"</literal> (uvozovky) èi <literal>'</literal> (apostrofy) jsou -doplnìna zpìtná lomítka, konce øádkù jsou nahrazeny znaèkou \n. + Tato funkce opatøí speciální znaky v <parameter>neupraveny_retezec</parameter> + zpìtným lomítkem pro bezpeèné pou¾ití v <function>mysql_query</function> + (konce øádkù jsou nahrazeny znaèkou \n atd.). </para> <note> <simpara> <function>mysql_escape_string</function> nepøidává zpìtná lomítka pøed znaky <literal>%</literal> a <literal>_</literal>. </simpara> + <simpara> + Funkce je témìø identická s <function>mysql_real_escape_string</function>. + Vyjma toho, že mysql_real_escape_string() upraví øetìzec podle nastavené znakové + sady v aktuálním identifikátoru spojení. <function>mysql_escape_string</function> + nepoužívá identifikátor spojení a ani nebere v potaz aktuální znakovou sadu. + </simpara> + </note> + <example> + <title><function>mysql_escape_string</function> pøíklad</title> + <programlisting role="php"> +<![CDATA[ +<?php + $item = "Zak's Laptop"; + $escaped_item = mysql_escape_string($item); + printf ("Escaped string: %s\n", $escaped_item); +?> +]]> + </programlisting> + <para> + Pøedchozí pøíklad by zobrazil následující výstup: + <screen> +<![CDATA[ +Escaped string: Zak\'s Laptop +]]> + </screen> + </para> + </example> + <para> + Dále také: + <function>mysql_real_escape_string</function>, + <function>addslashes</function> a + <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> + directive. + </para> </note> </refsect1> </refentry> Index: phpdoc-cs/reference/mysql/functions/mysql-info.xml +++ phpdoc-cs/reference/mysql/functions/mysql-info.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-info"> <refnamediv> <refname>mysql_info</refname> <refpurpose> Vrací informace o posledním dotazu </refpurpose> </refnamediv> <refsect1> <title>Popis</title> <methodsynopsis> <type>string</type><methodname>mysql_info</methodname> <methodparam choice="opt"><type>resource</type><parameter> spojeni </parameter></methodparam> </methodsynopsis> <para> <function>mysql_info</function> vrací detailní informace o posledním dotazu v použitém <parameter>spojeni</parameter>. Pokud <parameter>spojeni</parameter> není uvedeno, použije se poslední otevøené spojení. </para> <para> <function>mysql_info</function> vrací øetezec z všemi dotazy vylistovanými níže. Pro všechny ostatní &false;. Formát øetìzce je závislý na použitém typu dotazu. <example> <title>Pøíslušné MySQL dotazy</title> <programlisting role="mysql"> <![CDATA[ INSERT INTO ... SELECT ... String format: Records: 23 Duplicates: 0 Warnings: 0 INSERT INTO ... VALUES (...),(...),(...)... String format: Records: 37 Duplicates: 0 Warnings: 0 LOAD DATA INFILE ... String format: Records: 42 Deleted: 0 Skipped: 0 Warnings: 0 ALTER TABLE String format: Records: 60 Duplicates: 0 Warnings: 0 UPDATE String format: Rows matched: 65 Changed: 65 Warnings: 0 ]]> </programlisting> </example> Èísla uvedená v pøíkladu jsou jen pro ilustraci; jejich hodnoty budou shodné s výsledkem dotazu. </para> <note> <para> <function>mysql_info</function> vrací hodnotu jinou než &false; v pøípadì dotazu INSERT ... VALUES, ve kterém jsou uvedeny hodnoty pro zápis více záznamù najednou. </para> </note> <para> Dále také: <function>mysql_affected_rows</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 --> Index: phpdoc-cs/reference/mysql/functions/mysql-list-processes.xml +++ phpdoc-cs/reference/mysql/functions/mysql-list-processes.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.96 --> <refentry id="function.mysql-list-processes"> <refnamediv> <refname>mysql_list_processes</refname> <refpurpose>List MySQL processes</refpurpose> </refnamediv> <refsect1> <title>Popis</title> <methodsynopsis> <type>resource</type><methodname>mysql_list_processes</methodname> <methodparam choice="opt"><type>resource</type><parameter> spojeni </parameter></methodparam> </methodsynopsis> <para> <function>mysql_list_processes</function> vrací ukazatel popisující aktuální vlákna serveru. </para> <para> <example> <title><function>mysql_list_processes</function> pøíklad</title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', 'mysql_jmeno', 'mysql_heslo'); $result = mysql_list_processes($link); while ($row = mysql_fetch_row($result)){ printf("%s %s %s %s %s\n", $row["Id"], $row["Host"], $row["db"], $row["Command"], $row["Time"]); } mysql_free_result ($result); ?> ]]> </programlisting> <para> Pøedchozí pøíklad by zobrazit následující výstup: <screen> <![CDATA[ 1 localhost test Processlist 0 4 localhost mysql sleep 5 ]]> </screen> </para> </example> </para> <para> See also: <function>mysql_thread_id</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 --> Index: phpdoc-cs/reference/mysql/functions/mysql-ping.xml +++ phpdoc-cs/reference/mysql/functions/mysql-ping.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-ping"> <refnamediv> <refname>mysql_ping</refname> <refpurpose>Ovìøí spojení se serverem, pøípadnì, není-li spojení dostupné, pokusí se pøipojit znovu.</refpurpose> </refnamediv> <refsect1> <title>Popis</title> <methodsynopsis> <type>bool</type><methodname>mysql_ping</methodname> <methodparam choice="opt"><type>resource</type><parameter> spojeni </parameter></methodparam> </methodsynopsis> <para> <function>mysql_ping</function> zkouší, zda je èi není spojení se serverem. V pøípadì, že spojení je ztraceno, automaticky se pokusí vytvoøit nové spojení. Tato funkce mùže být použita ve scriptech, které zùstávají dlouho dobu neèinné k zjištìní, zda je sepojení se serverem již zavøeno a v pøípadì nutnosti navážou automaticky spojení nové. <function>mysql_ping</function> vrací &true; pokud je spojení navázáno, jinak &false;. </para> <para> Dále také: <function>mysql_thread_id</function>, <function>mysql_list_processes</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 --> Index: phpdoc-cs/reference/mysql/functions/mysql-real-escape-string.xml +++ phpdoc-cs/reference/mysql/functions/mysql-real-escape-string.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-real-escape-string"> <refnamediv> <refname>mysql_real_escape_string</refname> <refpurpose> Upraví øetìzec pro bezpeèné pou¾ití v mysql_query. </refpurpose> </refnamediv> <refsect1> <title>Popis</title> <methodsynopsis> <type>string</type><methodname>mysql_real_escape_string</methodname> <methodparam><type>string</type><parameter>neupraveny_retezec</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>spojeni</parameter></methodparam> </methodsynopsis> <para> Tato funkce opatøí speciální znaky v <parameter>neupraveny_retezec</parameter> zpìtným lomítkem pro bezpeèné pou¾ití v <function>mysql_query</function> v závislosti na aktuální znakové sadì spojení (konce øádkù jsou nahrazeny znaèkou \n atd.). </para> <note> <simpara> <function>mysql_real_escape_string</function> nepøidává zpìtná lomítka pøed <literal>%</literal> and <literal>_</literal>. </simpara> </note> <example> <title><function>mysql_real_escape_string</function> pøíklad</title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $item = "Zak's and Derick's Laptop"; $escaped_item = mysql_real_escape_string($item); printf ("Escaped string: %s\n", $escaped_item); ?> ]]> </programlisting> <para> Pøedchozí pøíklad by zobrazil následující výstup: <screen> <![CDATA[ Escaped string: Zak\'s and Derick\'s Laptop ]]> </screen> </para> </example> <para> Dále také: <function>mysql_escape_string</function>, <function>mysql_character_set_name</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 --> Index: phpdoc-cs/reference/mysql/functions/mysql-stat.xml +++ phpdoc-cs/reference/mysql/functions/mysql-stat.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 --> <refentry id="function.mysql-stat"> <refnamediv> <refname>mysql_stat</refname> <refpurpose>Vrací aktuální stav systému</refpurpose> </refnamediv> <refsect1> <title>popis</title> <methodsynopsis> <type>string</type><methodname>mysql_stat</methodname> <methodparam choice="opt"><type>resource</type><parameter>spojeni</parameter></methodparam> </methodsynopsis> <para> <function>mysql_stat</function> vrací aktuální stav systému. </para> <note> <para> <function>mysql_stat</function> vrací hodnoty stavù pouze pro èas od startu MySQL serveru, vlákna, pomalé dotazy, otevøené tabulky, flush tabulky and dotazy za sekundu. pro kompletní výpis stavù dalších promìnných musíte použít sql dotaz SHOW STATUS. </para> </note> <para> <example> <title><function>mysql_stat</function> pøíkaz</title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', "mysql_user", "mysql_password"); printf("%s\n", mysql_stat($link)); ?> ]]> </programlisting> <para> pøedchozí pøíklad by zobrazil následující výstup: <screen> <![CDATA[ Uptime: 5380 Threads: 1 Questions: 1321299 Slow queries: 1 Opens: 26 Flush tables: 1 Open tables: 17 Queries per second avg: 245.595 ]]> </screen> </para> </example> </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 --> Index: phpdoc-cs/reference/mysql/functions/mysql-thread-id.xml +++ phpdoc-cs/reference/mysql/functions/mysql-thread-id.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.mysql-thread-id"> <refnamediv> <refname>mysql_thread_id</refname> <refpurpose>Vrátí id aktuálního vlákna</refpurpose> </refnamediv> <refsect1> <title>Popis</title> <methodsynopsis> <type>int</type><methodname>mysql_thread_id</methodname> <methodparam choice="opt"><type>resource</type><parameter>spojeni</parameter></methodparam> </methodsynopsis> <para> <function>mysql_thread_id</function> Vrátí id aktuálního vlákna. Je-li spojení ztraceno a znovu navázáno pomocí <function>mysql_ping</function>, id vlánka bude jiné. </para> <example> <title><function>mysql_thread_id</function> pøíklad</title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', 'mysql_uziv', 'mysql_heslo'); $thread_id = mysql_thread_id($link); if ($thread_id){ printf ("id aktuálního vlákna je %d\n", $thread_id); } ?> ]]> </programlisting> <para> Pøedchozí pøíklad by zobrazil následující výstup: <screen> <![CDATA[ id aktuálního vlákna je 73 ]]> </screen> </para> </example> <para> Dále také: <function>mysql_ping</function>, <function>mysql_list_processes</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 (#969346243) next »