sean Wed Aug 4 14:33:09 2004 EDT
Modified files:
/phpdoc/en/reference/network/functions ip2long.xml
Log:
" to ' where applicable
http://cvs.php.net/diff.php/phpdoc/en/reference/network/functions/ip2long.xml?r1=1.9&r2=1.10&ty=u
Index: phpdoc/en/reference/network/functions/ip2long.xml
diff -u phpdoc/en/reference/network/functions/ip2long.xml:1.9
phpdoc/en/reference/network/functions/ip2long.xml:1.10
--- phpdoc/en/reference/network/functions/ip2long.xml:1.9 Wed Aug 4 14:25:19
2004
+++ phpdoc/en/reference/network/functions/ip2long.xml Wed Aug 4 14:33:09 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<!-- splitted from ./en/functions/network.xml, last change in rev 1.18 -->
<refentry id="function.ip2long">
<refnamediv>
@@ -34,9 +34,9 @@
<programlisting role="php">
<![CDATA[
<?php
-$ip = gethostbyname("www.example.com");
+$ip = gethostbyname('www.example.com');
$out = "The following URLs are equivalent:<br />\n";
-$out .= "http://www.example.com/, http://" . $ip . "/, and http://" . sprintf("%u",
ip2long($ip)) . "/<br />\n";
+$out .= 'http://www.example.com/, http://' . $ip . '/, and http://' . sprintf("%u",
ip2long($ip)) . "/<br />\n";
echo $out;
?>
]]>
@@ -61,11 +61,11 @@
<programlisting role="php">
<![CDATA[
<?php
-$ip = gethostbyname("www.example.com");
+$ip = gethostbyname('www.example.com');
$long = ip2long($ip);
if ($long == -1 || $long === FALSE) {
- echo "Invalid IP, please try again";
+ echo 'Invalid IP, please try again';
} else {
echo $ip . "\n"; // 192.0.34.166
echo $long . "\n"; // -1073732954