Re: getting images from LDAP

From: Date: Mon, 24 Jun 2002 20:28:47 +0000
Subject: Re: getting images from LDAP
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-85551@lists.php.net to get a copy of this message
Hi On Mon, Jun 24, 2002 at 04:05:19PM -0400, Jennifer Telisky wrote: > Only thing I can think of, is to somehow store $data out to a file > data.jpg, then use this file as the <img src=data.jpg>. Although, I > can't seem to find a way to do this either. Write one script that displays the ASCII info and uses img src doing something like <img src="getjpegphoto.php?dn=cn....."> where getjpegphoto.php is the script you already wrote to displays jpegs. To display the right photo you might for instance pass the entry's dn to the script like I'm hinting above. If you have the dn of the entry in $dn, you can create the appropriate img src by doing say echo "<img src='getjpegphoto.php?dn=", urlencode($dn), "'>"; Stig

« previous php.dev (#85551) next »