[PHP] List values
Can anyone pls tell me how to dynamically list values in a ListMenu. The values do not come from any database. They are stored in php variables. Sample code will be highly appreciated.
RE: [PHP] List values
Array. I am interested to know for both the cases. Thanks ! From: Nathan Taylor [mailto:[EMAIL PROTECTED] Sent: Sun 12/21/2003 8:00 AM To: Chakravarthy Cuddapah Subject: Re: [PHP] List values Are the values in an array or individually in variables? Nathan - Original Message - From: Chakravarthy Cuddapah <mailto:[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Sunday, December 21, 2003 7:47 AM Subject: [PHP] List values Can anyone pls tell me how to dynamically list values in a ListMenu. The values do not come from any database. They are stored in php variables. Sample code will be highly appreciated.
[PHP] sorting a mulit-dimensional array
Can anyone pls tell me with an example on how to select distinct values from a multi-dimensional array. Moving distinct values into another array is ok. Thanks !
[PHP] onChange
I have 2 list fields in a form. The second is populated basing on selection in field 1. Can anyone pls tell me how to do this in PHP ?
[PHP] distinct values from a mulit-dimensional array
Can anyone pls tell me with an example on how to select distinct values from a multi-dimensional array. Moving distinct values into another array is ok. Thanks !
[PHP] warnings
Can anyone pls tell me how to prevent warnings to be displayed on the screen ? For example, I get this message: Warning: ldap_get_entries(): supplied argument is not a valid ldap result resource in test.php on line 235 I have code to display error messages when this occurs. But I don't want to display the above warning message. Thanks !
[PHP] array data to XML
newbie ... Is it possible to format data in array to XML and display ? Thanks !
RE: [PHP] Password in LDAP with php
You can do this in PHP. Check this: http://us4.php.net/manual/en/ref.ldap.php I wrote a form in PHP to add users to LDAP, change passwords etc. Check this https://www.cuddapahonline.net/ldap/ I can send the forms if you want. From: Bc. Radek Krejča Sent: Mon 1/5/2004 10:30 AM To: [EMAIL PROTECTED] Subject: [PHP] Password in LDAP with php Hello, I need to set up password for user in LDAP. From command line is not problem to set up pass with ldappass, but is some function or method in PHP? -- Regards, Bc. Radek Krejča Starnet, s. r. o. [EMAIL PROTECTED] http://www.ceskedomeny.cz http://www.skdomeny.com http://www.starnet.cz ICQ: 65895541 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Password in LDAP with php
The new function would be of great help. I am using Apple's Panther Server. In their documentation Apple suggested to use passwd command at the terminal instead of ldap commands. If you can send me detailed instructions, I can test. From: Stig Venaas Sent: Mon 1/5/2004 11:01 AM To: Chakravarthy Cuddapah Cc: Bc. Radek Krej?a; [EMAIL PROTECTED] Subject: Re: [PHP] Password in LDAP with php On Mon, Jan 05, 2004 at 10:45:58AM -0500, Chakravarthy Cuddapah wrote: > You can do this in PHP. Check this: http://us4.php.net/manual/en/ref.ldap.php > I wrote a form in PHP to add users to LDAP, change passwords etc. Check this > https://www.cuddapahonline.net/ldap/ > I can send the forms if you want. I'm also planning to commit to PHP a new function that uses the LDAP control specificed in RFC 3062 for changing passwords. I have some code that might work... The point is that instead of updating the userPassword attribute, doing your own hashing etc. you just give the LDAP server the old and new password in clear text. This is very useful in cases where the password isn't stored in the LDAP tree itself. It requires the LDAP server to support RFC 3062 though, not sure if there are others than OpenLDAP. I would need some volunteer that could test a patch. Stig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help with ldap_add
I am using RedHat Enterprise Linux (ES). Installed openldap, php, apache latest versions. All except ldap_add functions are working. When I use ldapadd at the terminal it works adding entries to ldap. But when I use php ldap_add , error code shows it is Success. But does not add any entires to ldap. I am using the form uid-xxx, cn=xxx,ou=xxx,o=x. It works for cn=xxx,ou=xxx,o=xxx. When I try to add uid=xxx, cn=xxx,ou=xxx,o=x it fails. slapd log shows err=0. Appreciate any help. _ Get some great ideas here for your sweetheart on Valentine's Day - and beyond. http://special.msn.com/network/celebrateromance.armx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help with ldap_add
I am using RedHat Enterprise Linux (ES). Installed openldap, php, apache latest versions. All except ldap_add functions are working. When I use ldapadd at the terminal it works adding entries to ldap. But when I use php ldap_add , error code shows it is Success. But does not add any entires to ldap. I am using the form uid-xxx, cn=xxx,ou=xxx,o=x. It works for cn=xxx,ou=xxx,o=xxx. When I try to add uid=xxx, cn=xxx,ou=xxx,o=x it fails. slapd log shows err=0. Appreciate any help. _ Keep up with high-tech trends here at "Hook'd on Technology." http://special.msn.com/msnbc/hookedontech.armx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] diskusage
In php I want to know space used (du) by user on a remote system. Can anyone pls tell me how this can be done. Thanks ! _ Check out the great features of the new MSN 9 Dial-up, with the MSN Dial-up Accelerator. http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] diskusage
From the terminal I can do this by: ssh [EMAIL PROTECTED] du -hs /home/user | awk '{print $1}' The same does not work in php. I used system and also shell_exec. Works only on localhost. But not remote system. Appreciate any help. Original Message Follows From: "John W. Holmes" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: Chakravarthy Cuddapah <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] diskusage Date: Mon, 16 Feb 2004 15:17:52 -0500 Chakravarthy Cuddapah wrote: In php I want to know space used (du) by user on a remote system. Can anyone pls tell me how this can be done. Just call du through exec(). -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Take off on a romantic weekend or a family adventure to these great U.S. locations. http://special.msn.com/local/hotdestinations.armx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php