Files
php-doc-ru/reference/mysql/functions/mysql-get-host-info.xml
Boris Bezrukov f7dc059834 Data types replaced with english equivalent
git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@152373 c90b9560-bf6c-de11-be94-00142212c4b1
2004-02-25 17:47:50 +00:00

74 lines
2.2 KiB
XML

<?xml version="1.0" encoding="windows-1251"?>
<!-- $Revision: 1.2 $ -->
<!-- EN-Revision: 1.6 Maintainer: lovchy Status: ready -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
<refentry id="function.mysql-get-host-info">
<refnamediv>
<refname>mysql_get_host_info</refname>
<refpurpose>Âîçâðàùàåò èíôîðìàöèþ î ñîåäèíåíèè ñ MySQL</refpurpose>
</refnamediv>
<refsect1>
<title>Îïèñàíèå</title>
<methodsynopsis>
<type>string</type><methodname>mysql_get_host_info</methodname>
<methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam>
</methodsynopsis>
<para>
<function>mysql_get_host_info</function> âîçâðàùàåò ñòðîêó, îïèñûâàþùóþ
ñîåäèíåíèå, íà êîòîðîå ññûëàåòñÿ ïåðåäàííûé óêàçàòåëü
<parameter>link_identifier</parameter>, âêëþ÷àÿ èìÿ õîñòà.
Åñëè ïàðàìåòð <parameter>link_identifier</parameter> îïóùåí, áóäåò
èñïîëüçîâàíî ïîñëåäíåå ñîåäèíåíèå.
</para>
<para>
<example>
<title>Ïðèìåð èñïîëüçîâàíèÿ <function>mysql_get_host_info</function></title>
<programlisting role="php">
<![CDATA[
<?php
mysql_connect("localhost", "mysql_user", "mysql_password") or
die("Could not connect: " . mysql_error());
printf ("MySQL host info: %s\n", mysql_get_host_info());
?>
]]>
</programlisting>
<para>
Âûøåîïèñàííûé ïðèìåð âûäàñò ñëåäóþùèé ðåçóëüòàò:
</para>
<screen>
<![CDATA[
MySQL host info: Localhost via UNIX socket
]]>
</screen>
</example>
</para>
<para>
Ñì. òàêæå
<function>mysql_get_client_info</function>,
<function>mysql_get_proto_info</function> è
<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
-->