FW: [PHP-WIN] If statement inside of for statement

2003-02-09 Thread Stan McCowan
Matt, I'm pasting a couple of values from a form page. I'm check against a flat file database. After the for each statement display the string $line and $move. the value are equal, but the if statement is not executed. Stan -Original Message- From: Matt Hillebrand [mailto:[EMAIL PROTECTED

php-windows Digest 10 Feb 2003 05:08:35 -0000 Issue 1580

2003-02-09 Thread php-windows-digest-help
php-windows Digest 10 Feb 2003 05:08:35 - Issue 1580 Topics (messages 18413 through 18423): LDAP Group Membership - Primary Group not appearing 18413 by: Craig Roberts LDAP Question 18414 by: Craig Roberts Confirmation e-mail 18415 by: Davy Obdam 18416 by: K

RE: [PHP-WIN] If statement inside of for statement

2003-02-09 Thread Matt Hillebrand
Stan, It might be because of the "\r\n" (carriage-return AND newline) characters that Windows filesystems use. Try calling trim() on your values before comparing them. Matt |-Original Message- |From: Stan McCowan [mailto:[EMAIL PROTECTED]] |Sent: Sunday, February 09, 2003 11:06 PM |To:

[PHP-WIN] If statement inside of for statement

2003-02-09 Thread Stan McCowan
I'm having a problem with the if statement not working inside of a for statement. Is there something I'm missing. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] opendir

2003-02-09 Thread Dash McElroy
Evan, Here is a super simple function I wrote to help things out with directories. function dir_list($input) { $dir = @opendir($input) or die ("Invalid Directory"); $dirlist = array(); while ($dirlist = readdir($dir)) { $file[] = $dirlist; } clo

[PHP-WIN] How does PHP handles multiple db transaction?

2003-02-09 Thread Apollo
Hi, Can anyone enlighten me how does PHP handles multiple database transaction. Do the odbc_* functions suffice? Thanks, Apollo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Confirmation e-mail

2003-02-09 Thread Ruprecht Helms
Hi Matt Hillebrand, > That sounds mighty secure, but I think he's trying to verify that the > email address does indeed belong to the person creating an account. I don't think so. Normaly you identify you by typing username and password into the textfields. Sometimes the username is identical wi

RE: [PHP-WIN] Confirmation e-mail

2003-02-09 Thread Matt Hillebrand
That sounds mighty secure, but I think he's trying to verify that the email address does indeed belong to the person creating an account. I use the following two functions to create a random number, and then I insert it into the DB. Then I send a URL inside the confirmation email that points to a

[PHP-WIN] RE: [PHP-DB] Confirmation e-mail

2003-02-09 Thread Ruprecht Helms
Hi Davy Obdam, >[...] > My question is what would be the best approach to achieve this? How is > this usualy done? Storing the password in encrypted form in a database. The confirmationmail you can write with the normal mailcommand using addslashes. The securest way if the password was randoml

RE: [PHP-WIN] Confirmation e-mail

2003-02-09 Thread Kyle Williamson
The best way to do this, afaik is to generate a unique md5 hash, say a hash of "username-password" or a hash of a random number, and store.. that way, you can send the user (using mail()).. http:///confirm.php?s= == Kind Regards, Kyle Williamson Solent Educational Limited Tel: (023) 80 843189

[PHP-WIN] Confirmation e-mail

2003-02-09 Thread Davy Obdam
Hello people., I am developing a website with a user login system, i would like to send an confirmation e-mail to the user when he/she registers for the site, asking for confirmation...for instance click on a link to activate thier account. My question is what would be the best approach to achi

[PHP-WIN] LDAP Question

2003-02-09 Thread Craig Roberts
Hey, I'm trying to find out what groups a user is a member of. I have written the following code, which returns the DN of some of the groups: $ldap = ldap_connect("curric-srv"); ldap_bind($ldap, "willik@domain", "(password)"); $sr = ldap_search($ldap, "DC=domain", "cn=98ROBERC"); $data = ldap_ge

[PHP-WIN] LDAP Group Membership - Primary Group not appearing

2003-02-09 Thread Craig Roberts
Hey, I'm trying to find out what groups a user is a member of. I have written the following code, which returns the DN of some of the groups: $ldap = ldap_connect("curric-srv"); ldap_bind($ldap, "willik@domain", "(password)"); $sr = ldap_search($ldap, "DC=domain", "cn=98ROBERC"); $data = ldap_ge

php-windows Digest 9 Feb 2003 15:44:56 -0000 Issue 1579

2003-02-09 Thread php-windows-digest-help
php-windows Digest 9 Feb 2003 15:44:56 - Issue 1579 Topics (messages 18408 through 18412): Re: PHP and .NET AGAIN...NEWBIE!!! 18408 by: pingywon MCSE Re: Passing parameters in forms 18409 by: Apollo problems about sql server2000,help 18410 by: auto_null.enorth.com.c

[PHP-WIN] opendir

2003-02-09 Thread Evan
Working with PHP 4.2.3==> IIS5.1, WinXP Pro, NTFS I made this simple page to be able to brouse throught folders and files, but it seems that it doesn't recognize folders when I go outside the directory in which is contained the .php file. Any Ideas? Thanks *+++ "; $i=0