[PHP] usort Issues and Classes

2001-02-06 Thread Jason Mowat
Greets, I am playing around with usort and an LDAP class. Basically, I want to sort the results of an LDAP search based on a specific criterion. class CLDAP { var $m_Entries; var $m_LinkIdentifier; ... function Connect() { ... } function Bind() { ... } function

[PHP] list() = each() Question

2001-02-07 Thread Jason Mowat
Greets, I have a quick question: $Array = array( "val1" = "Value 1", "val2" = "Value 2", "val3" = "Value 3" ); while(list($a,$b,$c,$d) = each($Array)) { print "$a = $c and $b = $d br"; } Doesn't the "each" construct return a 4 element array, where element 1's index is 0, element 2's

Re: [PHP] list() = each() Question

2001-02-07 Thread Jason Mowat
made more palatable) of demonstrating how each() can act when being used with other functions that don't necessarily want all of each()'s input. ""Jason Mowat"" [EMAIL PROTECTED] wrote in message 95rrbg$p3i$[EMAIL PROTECTED]">news:95rrbg$p3i$[EMAIL PROTECTED]... Greet

[PHP] Sorting LDAP Entries - Please Help

2001-02-07 Thread Jason Mowat
Greets all, I have been playing around with LDAP sorting, but I can't seem to get it to work. Essentially, I do an ldap_search() with a filter condition, and use a ldap_get_entries() to get all of the results. The ldap_get_entries() function returns a multi-dimensional array contain my result

[PHP] passthru Problems

2001-04-12 Thread Jason Mowat
Greetings, I am having a small problem displaying PDF files to my users via passthru. This is the situation: I have a bunch of PDF files on my server directory. I show the user a listing of the PDF files they can view, and allow them to hyperlink click on the PDF they wish to browse. When the

Re: [PHP] passthru Problems

2001-04-12 Thread Jason Mowat
:-) Cheers, Jason ""Jason Mowat"" [EMAIL PROTECTED] wrote in message 9b4lso$2gb$[EMAIL PROTECTED]">news:9b4lso$2gb$[EMAIL PROTECTED]... Greetings, I am having a small problem displaying PDF files to my users via passthru. This is the situation: I have a bunch of PDF

[PHP] Encryption (Browser Side)

2001-04-23 Thread Jason Mowat
Greets, I have a question about PHP and browser-side encryption. I currently authenticate my users to an LDAP system using the PHP LDAP APIs. The user enters their login name and password on a browser form, with the password box being set to all '*'s for password. However, this information is

Re: [PHP] help me :)

2001-04-30 Thread Jason Mowat
Arvydas, I did something like this using a tree structure, using stacks. Each item on the stack could have 1 to 3 properties: Name, Parent, URL. If the object on the stack has only a Name property (i.e. Parent and URL are empty) it is assumed that this item is a root node. If the item has a