[PHP] getting rid of NOTICE

2004-10-07 Thread Roger Thomas
I have this short script (below) that does checking whether a userid has an associated jpegPhoto in an LDAP database. The script is working fine but gave a 'Notice' msg bcos I made error_reporting to report all errors. Notice: Undefined index: jpegphoto in test.php on line 34 Question: How do

Re: [PHP] getting rid of NOTICE

2004-10-07 Thread zareef ahmed
--- Roger Thomas [EMAIL PROTECTED] wrote: I have this short script (below) that does checking whether a userid has an associated jpegPhoto in an LDAP database. The script is working fine but gave a 'Notice' msg bcos I made error_reporting to report all errors. Notice: Undefined index:

Re: [PHP] getting rid of NOTICE

2004-10-07 Thread Roger Thomas
I dont know how to explain this but when you work with an ldap attribute, they are case sensitive. jpegPhoto was what the schema was written with. However when you retrieve that into PHP, you accessed them with all lower case. So accessing userPassword attribute in ldap will become userpassword

Re: [PHP] getting rid of NOTICE

2004-10-07 Thread Marek Kilimajer
Roger Thomas wrote: I dont know how to explain this but when you work with an ldap attribute, they are case sensitive. jpegPhoto was what the schema was written with. However when you retrieve that into PHP, you accessed them with all lower case. So accessing userPassword attribute in ldap will

Re: [PHP] getting rid of NOTICE

2004-10-07 Thread M. Sokolewicz
Marek Kilimajer wrote: Roger Thomas wrote: I dont know how to explain this but when you work with an ldap attribute, they are case sensitive. jpegPhoto was what the schema was written with. However when you retrieve that into PHP, you accessed them with all lower case. So accessing

Re: [PHP] getting rid of NOTICE

2004-10-07 Thread Robin Vickery
On Thu, 7 Oct 2004 14:04:00 +0800, Roger Thomas [EMAIL PROTECTED] wrote: I have this short script (below) that does checking whether a userid has an associated jpegPhoto in an LDAP database. The script is working fine but gave a 'Notice' msg bcos I made error_reporting to report all errors.