Hi all together,

I modified my 'two lines of code':

$andre1;
$ds = ldap_connect ("localhost");
print "connect result is ...
$andre2;


Here are the snipped from the error_log:


[12-Sep-2001 11:24:16] PHP Warning:  Use of undefined constant andre1 -
assumed
'andre1' in /opt/www2.presse-data.de/ld/ldap.php on line 11


It seems to me that php never returns from the ldap_connect function!!!


BTW, phpinfo reports:

LDAP Support enabled
RCS Version $ID:ldap.c,v 1.82.4.2 2001/05/30 21:18:17 rasmus Exp $
Total Links 0/unlimited
API Version 2004


Any ideas?


Thank you

Andre



Richard Lynch wrote:
> 
> Check your Apache log for any errors...
> 
> And, it's *possible* PHP was configured to log errors elsewhere as well...
> 
> See php.ini, or write some intentionally broken code to be sure you get
> error messages to the browser.
> 
> --
> WARNING [EMAIL PROTECTED] address is an endangered species -- Use
> [EMAIL PROTECTED]
> Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
> ----- Original Message -----
> From: Andre Konopka <[EMAIL PROTECTED]>
> Newsgroups: php.general
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 10, 2001 4:18 AM
> Subject: Can' connect to ldap server
> 
> > Hi
> >
> > I compiled PHP_4.0.6 with LDAP support (openldap-2.0.12) without any
> > problems, but I can't connect to my locally
> > running LDAP-Server. The whole thing is running on a HP-UX11 box.
> >
> > Here are my very simple two lines of code:
> >
> >
> > $ds=ldap_connect ("localhost");
> >
> > print "connect result is ".$ds."<BR>";
> >
> >
> > If try to show the results I get error popup with
> >
> > 'Documents contained no data. Try again later, or contact the server's
> > administrator.'
> >
> >
> > If I comment out the 'connect' line the browser show the line
> > 'connect result is'
> >
> > I started slapd with debugging level 65535 and I can see that there are
> > no connection requests from PHP.
> >
> >
> > Any idea?
> >
> > Andre
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to