Re: [PHP] ldap add Invalid DN syntax

2010-05-04 Thread Manolis Vlachakis
solved as simple as i couldn't imagine... for a reason was not accepting the iconv anywhere else but... [CODE]$info["cn"] =iconv("Windows-1253","UTF-8",$data[$c]); //echo "|onoma-->"; //echo $info["cn"] ; $c++; $info["sn"] = iconv("Windows-1253","UTF-8",$data[$c]);[/CODE] so for all the greek

Re: [PHP] ldap add Invalid DN syntax

2010-05-03 Thread Manolis Vlachakis
the thing i just tried is with // Open a memory "file" for read/write... $fp = fopen('php://temp', 'r+'); // ... write the $input array to the "file" using fputcsv()... fputcsv($fp, $input, $delimiter, $enclosure); // ... rewind the "file" so we can read what we just wrote... rewind($f

Re: [PHP] ldap add Invalid DN syntax

2010-05-03 Thread Manolis Vlachakis
and my code begins like this... $uploaddir = $_SERVER['DOCUMENT_ROOT'].'/webteam/voiko/public_html/uploads/'; $file = $uploaddir . basename($_FILES['uploadfile']['name']); $data = file_get_contents($uploaddir . $_FILES["uploadfile"]["name"]); $data=split("[;\r]",$data); ; $num = count($data);

Re: [PHP] ldap add Invalid DN syntax

2010-04-30 Thread Manolis Vlachakis
on the array and on the server side i can see the names are added normally and with the correct encode(despite what i show you ) and the only thing is tha i get that DN not valid... i used the \r cause i use it on my csv file at least one... but i am sure (i used a counter for the letters + i compe

Re: [PHP] ldap add Invalid DN syntax

2010-04-30 Thread Ashley Sheridan
On Fri, 2010-04-30 at 14:34 +0300, Manolis Vlachakis wrote: > Hallo there everyone > although i have built my code correctly according to the examples i found on > the net.. > i get Invalid DN syntax error when i try to insert some attributes with ldap > add.. > > i get and read a csv file where

[PHP] ldap add Invalid DN syntax

2010-04-30 Thread Manolis Vlachakis
Hallo there everyone although i have built my code correctly according to the examples i found on the net.. i get Invalid DN syntax error when i try to insert some attributes with ldap add.. i get and read a csv file where i get the data correctly as i can see on the echos that follow: