dave            Thu Aug  5 01:37:21 2004 EDT

  Modified files:              
    /phpdoc/en/reference/strings/functions      crypt.xml 
  Log:
  - Remove incorrect information from example.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/crypt.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc/en/reference/strings/functions/crypt.xml
diff -u phpdoc/en/reference/strings/functions/crypt.xml:1.7 
phpdoc/en/reference/strings/functions/crypt.xml:1.8
--- phpdoc/en/reference/strings/functions/crypt.xml:1.7 Wed Aug  4 14:33:59 2004
+++ phpdoc/en/reference/strings/functions/crypt.xml     Thu Aug  5 01:37:20 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
 <!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
   <refentry id="function.crypt">
    <refnamediv>
@@ -105,18 +105,14 @@
     </example>
     <example>
      <title>Using <function>crypt</function> with htpasswd</title>
-      <para>
-       To create a password for use with an apache htpasswd file, you'll need to
-       use the first two letters of the password as the salt.
-      </para>
      <programlisting role="php">
 <![CDATA[
 <?php
 // Set the password
 $password = 'mypassword';
 
-// Get the hash
-$hash = crypt($password, substr($password, 0, 2));
+// Get the hash, letting the salt be automatically generated
+$hash = crypt($password);
 ?>
 ]]>
      </programlisting>

Reply via email to