philip          Fri May 30 16:43:26 2003 EDT

  Modified files:              
    /phpdoc/en/reference/filesystem/functions   basename.xml copy.xml 
                                                dirname.xml fnmatch.xml 
                                                fscanf.xml mkdir.xml 
                                                realpath.xml tempnam.xml 
                                                tmpfile.xml touch.xml 
  Log:
  Added php tags (<?php ?>) to examples.
  
  
Index: phpdoc/en/reference/filesystem/functions/basename.xml
diff -u phpdoc/en/reference/filesystem/functions/basename.xml:1.2 
phpdoc/en/reference/filesystem/functions/basename.xml:1.3
--- phpdoc/en/reference/filesystem/functions/basename.xml:1.2   Wed Apr 17 02:38:04 
2002
+++ phpdoc/en/reference/filesystem/functions/basename.xml       Fri May 30 16:43:26 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
   <refentry id="function.basename">
    <refnamediv>
@@ -30,9 +30,11 @@
       <title><function>basename</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 $path = "/home/httpd/html/index.php";
 $file = basename ($path);        // $file is set to "index.php"
 $file = basename ($path,".php"); // $file is set to "index"
+?>
 ]]>
       </programlisting>
      </example>
Index: phpdoc/en/reference/filesystem/functions/copy.xml
diff -u phpdoc/en/reference/filesystem/functions/copy.xml:1.4 
phpdoc/en/reference/filesystem/functions/copy.xml:1.5
--- phpdoc/en/reference/filesystem/functions/copy.xml:1.4       Mon Feb 10 22:04:15 
2003
+++ phpdoc/en/reference/filesystem/functions/copy.xml   Fri May 30 16:43:26 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
   <refentry id="function.copy">
    <refnamediv>
@@ -20,9 +20,11 @@
       <title><function>copy</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 if (!copy($file, $file.'.bak')) {
     print ("failed to copy $file...<br>\n");
 }
+?>
 ]]>
       </programlisting>
      </example>
Index: phpdoc/en/reference/filesystem/functions/dirname.xml
diff -u phpdoc/en/reference/filesystem/functions/dirname.xml:1.4 
phpdoc/en/reference/filesystem/functions/dirname.xml:1.5
--- phpdoc/en/reference/filesystem/functions/dirname.xml:1.4    Mon Feb 10 22:04:15 
2003
+++ phpdoc/en/reference/filesystem/functions/dirname.xml        Fri May 30 16:43:26 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
   <refentry id="function.dirname">
    <refnamediv>
@@ -26,8 +26,10 @@
       <title><function>dirname</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 $path = "/etc/passwd";
 $file = dirname ($path); // $file is set to "/etc"
+?>
 ]]>
       </programlisting>
      </example>
Index: phpdoc/en/reference/filesystem/functions/fnmatch.xml
diff -u phpdoc/en/reference/filesystem/functions/fnmatch.xml:1.1 
phpdoc/en/reference/filesystem/functions/fnmatch.xml:1.2
--- phpdoc/en/reference/filesystem/functions/fnmatch.xml:1.1    Wed Sep 25 20:31:29 
2002
+++ phpdoc/en/reference/filesystem/functions/fnmatch.xml        Fri May 30 16:43:26 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
   <refentry id="function.fnmatch">
    <refnamediv>
     <refname>fnmatch</refname> 
@@ -31,9 +31,11 @@
      </title>
      <programlisting role="php">
 <![CDATA[
+<?php
 if(fnmatch("*gr[ae]y", $color)) {
   echo "some form of gray ...";
 }
+?>
 ]]>
      </programlisting>
     </example>
Index: phpdoc/en/reference/filesystem/functions/fscanf.xml
diff -u phpdoc/en/reference/filesystem/functions/fscanf.xml:1.7 
phpdoc/en/reference/filesystem/functions/fscanf.xml:1.8
--- phpdoc/en/reference/filesystem/functions/fscanf.xml:1.7     Sun Jan 12 21:54:28 
2003
+++ phpdoc/en/reference/filesystem/functions/fscanf.xml Fri May 30 16:43:26 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
 <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
   <refentry id="function.fscanf">
    <refnamediv>
@@ -34,13 +34,15 @@
      <example>
       <title><function>fscanf</function> Example</title>
       <programlisting role="php">
-       <![CDATA[
+<![CDATA[
+<?php
 $handle = fopen ("users.txt","r");
 while ($userinfo = fscanf ($handle, "%s\t%s\t%s\n")) {
     list ($name, $profession, $countrycode) = $userinfo;
     //... do something with the values
 }
 fclose($handle);
+?>
 ]]>
       </programlisting>
      </example>
Index: phpdoc/en/reference/filesystem/functions/mkdir.xml
diff -u phpdoc/en/reference/filesystem/functions/mkdir.xml:1.7 
phpdoc/en/reference/filesystem/functions/mkdir.xml:1.8
--- phpdoc/en/reference/filesystem/functions/mkdir.xml:1.7      Fri Jan  3 16:32:06 
2003
+++ phpdoc/en/reference/filesystem/functions/mkdir.xml  Fri May 30 16:43:26 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
 <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.39 -->
   <refentry id="function.mkdir">
    <refnamediv>
@@ -36,7 +36,9 @@
      <informalexample>
       <programlisting role="php">
 <![CDATA[
+<?php
 mkdir ("/path/to/my/dir", 0700);
+?>
 ]]>
       </programlisting>
      </informalexample>
Index: phpdoc/en/reference/filesystem/functions/realpath.xml
diff -u phpdoc/en/reference/filesystem/functions/realpath.xml:1.4 
phpdoc/en/reference/filesystem/functions/realpath.xml:1.5
--- phpdoc/en/reference/filesystem/functions/realpath.xml:1.4   Thu May  9 23:03:09 
2002
+++ phpdoc/en/reference/filesystem/functions/realpath.xml       Fri May 30 16:43:26 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.23 -->
   <refentry id="function.realpath">
    <refnamediv>
@@ -28,7 +28,9 @@
       <title><function>realpath</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 $real_path = realpath ("../../index.php");
+?>
 ]]>
       </programlisting>
      </example>
Index: phpdoc/en/reference/filesystem/functions/tempnam.xml
diff -u phpdoc/en/reference/filesystem/functions/tempnam.xml:1.3 
phpdoc/en/reference/filesystem/functions/tempnam.xml:1.4
--- phpdoc/en/reference/filesystem/functions/tempnam.xml:1.3    Sun Jan 12 21:54:28 
2003
+++ phpdoc/en/reference/filesystem/functions/tempnam.xml        Fri May 30 16:43:26 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
   <refentry id="function.tempnam">
    <refnamediv>
@@ -36,6 +36,7 @@
       <title><function>tempnam</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 $tmpfname = tempnam ("/tmp", "FOO");
 
 $handle = fopen($tmpfname, "w");
@@ -45,6 +46,7 @@
 // do here something
 
 unlink($tmpfname);
+?>
 ]]>
       </programlisting>
      </example>
Index: phpdoc/en/reference/filesystem/functions/tmpfile.xml
diff -u phpdoc/en/reference/filesystem/functions/tmpfile.xml:1.3 
phpdoc/en/reference/filesystem/functions/tmpfile.xml:1.4
--- phpdoc/en/reference/filesystem/functions/tmpfile.xml:1.3    Sat Jan 11 13:20:22 
2003
+++ phpdoc/en/reference/filesystem/functions/tmpfile.xml        Fri May 30 16:43:26 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.32 -->
   <refentry id="function.tmpfile">
    <refnamediv>
@@ -29,9 +29,11 @@
       <title><function>tmpfile</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 $temp = tmpfile();
 fwrite($temp, "writing to tempfile");
 fclose($temp); // this removes the file
+?>
 ]]>
       </programlisting>
      </example>
Index: phpdoc/en/reference/filesystem/functions/touch.xml
diff -u phpdoc/en/reference/filesystem/functions/touch.xml:1.4 
phpdoc/en/reference/filesystem/functions/touch.xml:1.5
--- phpdoc/en/reference/filesystem/functions/touch.xml:1.4      Mon Sep 23 11:06:48 
2002
+++ phpdoc/en/reference/filesystem/functions/touch.xml  Fri May 30 16:43:26 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
   <refentry id="function.touch">
    <refnamediv>
@@ -33,12 +33,14 @@
       <title><function>touch</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 if (touch ($FileName)) {
     print "$FileName modification time has been 
            changed to todays date and time";
 } else {
     print "Sorry Could Not change modification time of $FileName";
 }
+?>
 ]]>
       </programlisting>
      </example>

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

Reply via email to