cvs: phpdoc /en/functions network.xml

From: Date: Wed, 10 Apr 2002 07:33:20 +0000
Subject: cvs: phpdoc /en/functions network.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969344254@lists.php.net to get a copy of this message
georg Wed Apr 10 03:33:20 2002 EDT Modified files: /phpdoc/en/functions network.xml Log: changed domainname in samples Index: phpdoc/en/functions/network.xml diff -u phpdoc/en/functions/network.xml:1.60 phpdoc/en/functions/network.xml:1.61 --- phpdoc/en/functions/network.xml:1.60 Sat Mar 16 10:06:08 2002 +++ phpdoc/en/functions/network.xml Wed Apr 10 03:33:17 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.60 $ --> +<!-- $Revision: 1.61 $ --> <reference id="ref.network"> <title>Network Functions</title> <titleabbrev>Network</titleabbrev> @@ -201,11 +201,11 @@ <programlisting role="php"> <![CDATA[ <?php -$fp = fsockopen ("www.php.net", 80, $errno, $errstr, 30); +$fp = fsockopen ("www.example.com", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br>\n"; } else { - fputs ($fp, "GET / HTTP/1.0\r\nHost: www.php.net\r\n\r\n"); + fputs ($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\n\r\n"); while (!feof($fp)) { echo fgets ($fp,128); } @@ -486,9 +486,9 @@ <programlisting role="php"> <![CDATA[ <?php -$ip = gethostbyname("www.php.net"); +$ip = gethostbyname("www.example.com"); $out = "The following URLs are equivalent:<br>\n"; -$out .= "http://www.php.net/, 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; ?> ]]> @@ -509,7 +509,7 @@ <programlisting role="php"> <![CDATA[ <?php -$ip = gethostbyname("www.php.net"); +$ip = gethostbyname("www.example.com"); printf("%u\n", ip2long($ip)); echo $out; ?> @@ -826,7 +826,7 @@ <programlisting role="php"> <![CDATA[ <?php -$fp = fsockopen("www.php.net", 80); +$fp = fsockopen("www.example.com", 80); if(!$fp) { echo "Unable to open\n"; } else {

« previous php.doc (#969344254) next »