didou           Wed Jul 16 13:23:13 2003 EDT

  Modified files:              
    /phpdoc/en/reference/url/functions  rawurlencode.xml urldecode.xml 
                                        urlencode.xml 
  Log:
  adding PHP tags in the examples
  
Index: phpdoc/en/reference/url/functions/rawurlencode.xml
diff -u phpdoc/en/reference/url/functions/rawurlencode.xml:1.5 
phpdoc/en/reference/url/functions/rawurlencode.xml:1.6
--- phpdoc/en/reference/url/functions/rawurlencode.xml:1.5      Mon Jun 16 16:11:10 
2003
+++ phpdoc/en/reference/url/functions/rawurlencode.xml  Wed Jul 16 13:23:13 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <!-- splitted from ./en/functions/url.xml, last change in rev 1.6 -->
   <refentry id="function.rawurlencode">
    <refnamediv>
@@ -22,32 +22,40 @@
      with character conversions (like some email systems). For
      example, if you want to include a password in an FTP URL:
     </para>
-    <example>
-     <title><function>rawurlencode</function> example 1</title>
-     <programlisting role="php">
+    <para>
+     <example>
+      <title><function>rawurlencode</function> example 1</title>
+      <programlisting role="php">
 <![CDATA[
+<?php
 echo '<a href="ftp://user:', rawurlencode('foo @+%/'),
      '@ftp.my.com/x.txt">';
+?>
 ]]>
-     </programlisting>
-    </example>
+      </programlisting>
+     </example>
+    </para>
     <para>
      Or, if you pass information in a PATH_INFO component of the URL:
     </para>
-    <example>
-     <title><function>rawurlencode</function> example 2</title>
-     <programlisting role="php">
+    <para>
+     <example>
+      <title><function>rawurlencode</function> example 2</title>
+      <programlisting role="php">
 <![CDATA[
+<?php
 echo '<a href="http://x.com/department_list_script/',
     rawurlencode('sales and marketing/Miami'), '">';
+?>
 ]]>
-     </programlisting>
-    </example>
+      </programlisting>
+     </example>
+    </para>
     <simpara>
      See also <function>rawurldecode</function>,
      <function>urldecode</function>,
      <function>urlencode</function> and
-     <ulink url="&url.rfc;1738">RFC 1738</ulink>
+     <ulink url="&url.rfc;1738">RFC 1738</ulink>.
     </simpara>
    </refsect1>
   </refentry>
Index: phpdoc/en/reference/url/functions/urldecode.xml
diff -u phpdoc/en/reference/url/functions/urldecode.xml:1.2 
phpdoc/en/reference/url/functions/urldecode.xml:1.3
--- phpdoc/en/reference/url/functions/urldecode.xml:1.2 Wed Apr 17 02:44:55 2002
+++ phpdoc/en/reference/url/functions/urldecode.xml     Wed Jul 16 13:23:13 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/url.xml, last change in rev 1.2 -->
   <refentry id="function.urldecode">
    <refnamediv>
@@ -19,6 +19,7 @@
       <title><function>urldecode</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 $a = explode('&', $QUERY_STRING);
 $i = 0;
 while ($i < count($a)) {
@@ -27,13 +28,14 @@
          ' is ', htmlspecialchars(urldecode($b[1])), "<br />\n";
     $i++;
 }
+?>
 ]]>
       </programlisting>
      </example>
     </para>
     <para>
      See also <function>urlencode</function>,
-     <function>rawurlencode</function>,
+     <function>rawurlencode</function> and
      <function>rawurldecode</function>.
     </para>
    </refsect1>
Index: phpdoc/en/reference/url/functions/urlencode.xml
diff -u phpdoc/en/reference/url/functions/urlencode.xml:1.5 
phpdoc/en/reference/url/functions/urlencode.xml:1.6
--- phpdoc/en/reference/url/functions/urlencode.xml:1.5 Mon Jun 16 16:11:10 2003
+++ phpdoc/en/reference/url/functions/urlencode.xml     Wed Jul 16 13:23:13 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <!-- splitted from ./en/functions/url.xml, last change in rev 1.2 -->
   <refentry id="function.urlencode">
    <refnamediv>
@@ -29,7 +29,9 @@
       <title><function>urlencode</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 echo '<a href="mycgi?foo=', urlencode($userinput), '">';
+?>
 ]]>
       </programlisting>
      </example>
@@ -54,7 +56,9 @@
       <title><function>urlencode</function> and <function>htmlentities</function> 
example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 echo '<a href="mycgi?foo=', htmlentities(urlencode($userinput)), '">';
+?>
 ]]>
       </programlisting>
      </example>
@@ -62,7 +66,7 @@
     <para>
      See also <function>urldecode</function>,
      <function>htmlentities</function>,
-     <function>rawurldecode</function>, and
+     <function>rawurldecode</function> and
      <function>rawurlencode</function>.
     </para>
    </refsect1>



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

Reply via email to