|
From: Graham B. <gb...@po...> - 2003-03-18 14:52:38
|
On Mon, Mar 17, 2003 at 11:07:08AM -0500, Jim Harle wrote:
> The problem is in the LDIF code. The following works:
> if ($searchobj){
> $ldif = new Net::LDAP::LDIF("XX","a");
> $ldif->write_entry($searchobj->entries());
> $ldif->done();
> }
>
> but it puts the results in file XX. Substituting - for XX doesn't send it to
> stdout. There is nothing in the docs to say that it should. You shouldn't
Maybe not, but as "-", "w" will send to stdout I don't see it as unreasonable
to expect "-","a" to also go to stdout.
> need to use LDIF if you only want to display the results. There are lots of
> better ways.
Can you give examples ? Most people I know of use LDIF to display results,
certainly when in a debugging situation.
Graham.
|