didou           Wed Jul 16 13:21:22 2003 EDT

  Modified files:              
    /phpdoc/en/reference/sockets/functions      socket-last-error.xml 
                                                socket-select.xml 
  Log:
  adding PHP tags in the examples
  
Index: phpdoc/en/reference/sockets/functions/socket-last-error.xml
diff -u phpdoc/en/reference/sockets/functions/socket-last-error.xml:1.4 
phpdoc/en/reference/sockets/functions/socket-last-error.xml:1.5
--- phpdoc/en/reference/sockets/functions/socket-last-error.xml:1.4     Tue Apr 30 
18:14:22 2002
+++ phpdoc/en/reference/sockets/functions/socket-last-error.xml Wed Jul 16 13:21:22 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/sockets.xml, last change in rev 1.1 -->
   <refentry id="function.socket-last-error">
    <refnamediv>
@@ -28,10 +28,12 @@
      describing the given error code.
      <programlisting role="php">
 <![CDATA[
+<?php
 if (false == ($socket = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP))) {
     die("Couldn't create socket, error code is: " . socket_last_error() .
         ",error message is: " . socket_strerror(socket_last_error()));
 }
+?>
 ]]>
      </programlisting>
     </para>
Index: phpdoc/en/reference/sockets/functions/socket-select.xml
diff -u phpdoc/en/reference/sockets/functions/socket-select.xml:1.9 
phpdoc/en/reference/sockets/functions/socket-select.xml:1.10
--- phpdoc/en/reference/sockets/functions/socket-select.xml:1.9 Wed Jun 11 21:58:19 
2003
+++ phpdoc/en/reference/sockets/functions/socket-select.xml     Wed Jul 16 13:21:22 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
 <!-- splitted from ./en/functions/sockets.xml, last change in rev 1.27 -->
   <refentry id="function.socket-select">
    <refnamediv>
@@ -60,6 +60,7 @@
       <title><function>socket_select</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 /* Prepare the read array */
 $read = array($socket1, $socket2);
 
@@ -70,6 +71,7 @@
 } else if ($num_changed_sockets > 0) {
     /* At least at one of the sockets something interesting happened */
 }
+?>
 ]]>
       </programlisting>
      </example>
@@ -85,7 +87,9 @@
        <title>Using &null; with <function>socket_select</function></title>
        <programlisting role="php">
 <![CDATA[
+<?php
 socket_select($r, $w, $e = NULL, 0);
+?>
 ]]>
        </programlisting>
       </example>
@@ -117,10 +121,12 @@
       <title>Understanding <function>socket_select</function>'s result</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 if (false === socket_select($r, $w, $e = NULL, 0)) {
     echo "socket_select() failed, reason: " .
         socket_strerror(socket_last_error()) . "\n";
 }
+?>
 ]]>
        </programlisting>
       </example>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to