My code is:
$ds=ldap_connect("localhost");
$sr=ldap_search($ds,"o=organization,c=uk", "uid=toto");
$info = ldap_get_entries($ds, $sr);
Header("Content-type: image/jpeg");
echo $info[0]["jpegphoto"][0];
$f = fopen("fil.jpg","w");
fwrite($f,$info[0]["jpegphoto"][0]);
I shuld get picture from ldap server (one on html page, second in fil.jpg file) but all what I'm able to get is just strange string 'ÿØÿà'.
What is wrong?
LDAP server is iPlanet directory and php is running on IIS.