cvs: phpdoc-da /reference/mysql/functions mysql-get-proto-info.xml
| From: | Mads N. Vestergaard | Date: | Wed, 06 Oct 2004 20:41:52 +0000 |
| Subject: | cvs: phpdoc-da /reference/mysql/functions mysql-get-proto-info.xml | ||
| Groups: | php.doc.da | ||
| Request: | Send a blank email to doc-da+get-289@lists.php.net to get a copy of this message | ||
mnv Wed Oct 6 16:41:52 2004 EDT
Added files:
/phpdoc-da/reference/mysql/functions mysql-get-proto-info.xml
Log:
Initial translation
http://cvs.php.net/co.php/phpdoc-da/reference/mysql/functions/mysql-get-proto-info.xml?r=1.1&p=1
Index: phpdoc-da/reference/mysql/functions/mysql-get-proto-info.xml
+++ phpdoc-da/reference/mysql/functions/mysql-get-proto-info.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.10 Maintainer: mnv Status: ready -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
<refentry id="function.mysql-get-proto-info">
<refnamediv>
<refname>mysql_get_proto_info</refname>
<refpurpose>Modtag MySQL protokol information</refpurpose>
</refnamediv>
<refsect1>
<title>Beskrivelse</title>
<methodsynopsis>
<type>int</type><methodname>mysql_get_proto_info</methodname>
<methodparam
choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam>
</methodsynopsis>
<para>
<function>mysql_get_proto_info</function> returner protokol versionen
brugt af forbindelsen defineret af <parameter>link_identifier</parameter>
parametret. Hvis <parameter>link_identifier</parameter> parametret ikke er
angivet, vil den sidst åbne forbindelse blive brugt.
</para>
<para>
<example>
<title><function>mysql_get_proto_info</function> eksempel</title>
<programlisting role="php">
<![CDATA[
<?php
$link = mysql_connect('localhost', 'mysql_bruger', 'mysql_kode');
if (!$link) {
die('Kunne ikke forbinde: ' . mysql_error());
}
printf("MySQL protokol version: %s\n", mysql_get_proto_info());
?>
]]>
</programlisting>
<para>
Ovenstående eksempel vil producere følgende output:
</para>
<screen>
<![CDATA[
MySQL protokol version: 10
]]>
</screen>
</example>
</para>
<para>
Se også
<function>mysql_get_client_info</function>,
<function>mysql_get_host_info</function> og
<function>mysql_get_server_info</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
-->