Well, the only problem I can see (given that I don't know LDAP and
never used it) is that you have added a dot after the titles of the
examples, which is not all right. But anyway, the XML representation
seems to be OK.

Goba [one [EMAIL PROTECTED]]

----- Original Message -----
From: "Ray Hunter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 22, 2002 5:05 PM
Subject: Re: [PHP-DOC] LDAP Examples


> Does anyone have any complaints about the 2 examples that i added to
> ldap-connect.xml?
>
> If not then i will go ahead and commit it to cvs....
>
> --
> Ray
>
>
> On Thu, 2002-11-21 at 16:21, Ray Hunter wrote:
> > I would like to add a bunch of examples to the LDAP extension functions.
> >
> > Could everyone give me some feedback if this is the correct way?
> >
> > Here is my first attempt.
> >
> >
> > Index: ldap-connect.xml
> > ===================================================================
> > RCS file:
> > /repository/phpdoc/en/reference/ldap/functions/ldap-connect.xml,v
> > retrieving revision 1.2
> > diff -u -r1.2 ldap-connect.xml
> > --- ldap-connect.xml    17 Apr 2002 06:39:43 -0000      1.2
> > +++ ldap-connect.xml    21 Nov 2002 23:14:34 -0000
> > @@ -35,6 +35,42 @@
> >        URL and SSL support were added in 4.0.4.
> >       </simpara>
> >      </note>
> > +    <example>
> > +     <title>Example of connecting to LDAP server.</title>
> > +     <programlisting role="php">
> > +<![CDATA[
> > +<?php
> > +
> > +// LDAP variables
> > +$ldaphost = 'ldap.example.com';  // your ldap servers
> > +$ldapport = 389;                 // your ldap server's port number
> > +
> > +// Connecting to LDAP
> > +$ldapconn = ldap_connect( $ldaphost, $ldapport )
> > +          or die( "Could not connect to {$ldaphost}" );
> > +
> > +?>
> > +]]>
> > +     </programlisting>
> > +    </example>
> > +    <example>
> > +     <title>Example of connecting securely to LDAP server.</title>
> > +     <programlisting role="php">
> > +<![CDATA[
> > +<?php
> > +
> > +// make sure your host is the correct one
> > +// that you issued your secure certificate to
> > +$ldaphost = 'ldaps://ldap.example.com/';
> > +
> > +// Connecting to LDAP
> > +$ldapconn = ldap_connect( $ldaphost )
> > +          or die( "Could not connect to {$ldaphost}" );
> > +
> > +?>
> > +]]>
> > +     </programlisting>
> > +    </example>
> >     </refsect1>
> >    </refentry>
> >
> >
> >
> > --
> >
> > Ray Hunter
> > email: [EMAIL PROTECTED]
> > www: http://venticon.com
>
>
> --
> PHP Documentation Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



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

Reply via email to