[Date Prev][Date Next]
On Tue, Nov 20, 2001 at 08:16:05AM +0800, Hafiz Malik wrote:
> how to view jpegphoto attribute in web page? or even in php?
I think it would be better to ask on a PHP list. What you need to do,
is to write a PHP script (or something else) that fetches the picture
from LDAP, and outputs it with the proper MIME header. In your web
page, you can then do say <img src="URL for script">. You might want
to write a general purpose script that takes the DN as argument.
Another way could be to retrieve the picture and store it on disk
when the web page is requested, and refer to the disk file in the img
tag. The latter is better if there might be multiple values/pictures.
For an example script, see my example at
- From: "Hafiz Malik" <firstname.lastname@example.org>