2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 08:18:07 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="function.long2ip" xmlns="http://docbook.org/ns/docbook">
|
2007-06-10 01:55:51 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>long2ip</refname>
|
2015-09-16 23:16:57 +00:00
|
|
|
<refpurpose>Converts an long integer address into a string in (IPv4) Internet standard dotted format</refpurpose>
|
2007-06-10 01:55:51 +00:00
|
|
|
</refnamediv>
|
2007-06-10 01:57:09 +00:00
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-06-10 01:55:51 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>string</type><methodname>long2ip</methodname>
|
2017-08-22 21:28:14 +00:00
|
|
|
<methodparam><type>int</type><parameter>proper_address</parameter></methodparam>
|
2007-06-10 01:55:51 +00:00
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
The function <function>long2ip</function> generates an Internet address
|
2015-09-16 23:16:57 +00:00
|
|
|
in dotted format (i.e.: aaa.bbb.ccc.ddd) from the long integer
|
2007-06-10 01:55:51 +00:00
|
|
|
representation.
|
|
|
|
</para>
|
2007-06-10 01:57:09 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>proper_address</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2015-09-16 23:16:57 +00:00
|
|
|
A proper address representation in long integer.
|
2007-06-10 01:57:09 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
2007-06-10 01:55:51 +00:00
|
|
|
<para>
|
2007-06-10 01:57:09 +00:00
|
|
|
Returns the Internet IP address as a string.
|
2007-06-10 01:55:51 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-06-10 01:57:09 +00:00
|
|
|
|
2017-08-22 21:28:14 +00:00
|
|
|
<refsect1 role="changelog"><!-- {{{ -->
|
|
|
|
&reftitle.changelog;
|
|
|
|
<informaltable>
|
|
|
|
<tgroup cols="2">
|
|
|
|
<thead>
|
|
|
|
<row>
|
|
|
|
<entry>&Version;</entry>
|
|
|
|
<entry>&Description;</entry>
|
|
|
|
</row>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry>7.1.0</entry>
|
|
|
|
<entry>
|
|
|
|
The parameter type of <parameter>proper_address</parameter> has been
|
|
|
|
changed from <type>string</type> to <type>integer</type>.
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
</refsect1><!-- }}} -->
|
|
|
|
|
|
|
|
<refsect1 role="notes"><!-- {{{ -->
|
|
|
|
&reftitle.notes;
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
On 32-bit architectures, casting integer representations of IP addresses
|
2018-11-19 13:14:01 +00:00
|
|
|
from <type>string</type> to <type>integer</type> will not give
|
2017-08-22 21:28:14 +00:00
|
|
|
correct results for numbers which exceed <constant>PHP_INT_MAX</constant>.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
</refsect1><!-- }}} -->
|
|
|
|
|
2007-06-10 01:57:09 +00:00
|
|
|
<refsect1 role="seealso">
|
|
|
|
&reftitle.seealso;
|
|
|
|
<para>
|
|
|
|
<simplelist>
|
|
|
|
<member><function>ip2long</function></member>
|
|
|
|
</simplelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
2007-06-10 01:55:51 +00:00
|
|
|
</refentry>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
<!-- 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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2002-04-15 00:12:54 +00:00
|
|
|
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
|
|
|
|
-->
|