aidan Thu Feb 24 02:38:36 2005 EDT
Modified files:
/phpdoc/en/reference/sockets/functions socket-bind.xml
Log:
Fix a host of tiny mistakes
http://cvs.php.net/diff.php/phpdoc/en/reference/sockets/functions/socket-bind.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/sockets/functions/socket-bind.xml
diff -u phpdoc/en/reference/sockets/functions/socket-bind.xml:1.8
phpdoc/en/reference/sockets/functions/socket-bind.xml:1.9
--- phpdoc/en/reference/sockets/functions/socket-bind.xml:1.8 Thu Feb 24
02:23:58 2005
+++ phpdoc/en/reference/sockets/functions/socket-bind.xml Thu Feb 24
02:38:36 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<refentry id="function.socket-bind">
<refnamediv>
<refname>socket_bind</refname>
@@ -42,7 +42,7 @@
</para>
<para>
If the socket is of the <constant>AF_UNIX</constant> family, the
- <parameter>address</parameter> is the pathname of a
+ <parameter>address</parameter> is the path of a
Unix-domain socket (e.g. <filename>/tmp/my.sock</filename>).
</para>
</listitem>
@@ -70,14 +70,6 @@
This code may be passed to <function>socket_strerror</function> to get a
textual explanation of the error.
</para>
- <note>
- <para>
- Windows 9x/ME compatability note:
- <function>socket_last_error</function> may return an invalid error code
- if trying to bind the socket to a wrong address that does not belong to
- your machine.
- </para>
- </note>
</refsect1>
<refsect1 role="examples">
@@ -96,14 +88,14 @@
$sourceips['madcoder'] = '127.0.0.2';
// Bind the source address
-socket_bind($sock, $computerips['madcoder']);
+socket_bind($sock, $sourceips['madcoder']);
// Connect to destination address
socket_connect($sock, '127.0.0.1', 80);
// Write
$request = 'GET / HTTP/1.1' . "\r\n" .
- 'Host: example.com' . "\r\n\";
+ 'Host: example.com' . "\r\n\r\n";
socket_write($sock, $request);
// Close
@@ -124,6 +116,14 @@
<function>socket_connect</function>.
</para>
</note>
+ <note>
+ <para>
+ Windows 9x/ME compatibility note:
+ <function>socket_last_error</function> may return an invalid error code
+ if trying to bind the socket to a wrong address that does not belong to
+ your machine.
+ </para>
+ </note>
</refsect1>
<refsect1 role="seealso">