RE: [PHP-WIN] .htaccess protection / php

2002-08-29 Thread Christian Leberfinger
> i am using the php " md5( ) " function to encrypt > the password. so, when i want to access to the new > user "index.php" the password pop-up window appears > and i type in the username and password, but i can“t > access the user file. Hi, I also wrote a script creating .htaccess-files and I t

RE: [PHP-WIN] How can i Have a function who returns 2 variables?

2002-06-29 Thread Christian Leberfinger
Pass variable by reference: function abc(&$var1, &var2) { $var1 ++; $var2 ++; } //end of function Christian Leberfinger -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] This crazy code works, but is this the correct and elegant way on 4.21 ?

2002-06-24 Thread Christian Leberfinger
sorrysorrysorry - I didn't see the exit. The other way really was the better one. But what is crazy about this piece of code? Chris -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] This crazy code works, but is this the correct and elegant way on 4.21 ?

2002-06-24 Thread Christian Leberfinger
No. This is the most elegant way I'm aware of: None http://www.microsoft.com/";>Microsoft http://www.altavista.com/";>Altavista http://php.net/";>Php.net -- PHP Windows Mailing List (http://www.php.net

RE: [PHP-WIN] Newbye question

2002-06-23 Thread Christian Leberfinger
1) action="" [works also, with register_globals=Off] You can also leave the action-tag blank - then the form always posts to itself! 2) $texto should be $_POST['texto'] [again the autoglobals...] 3) Correct code - I hope it helps you Learning PHP "

RE: [PHP-WIN] Any way of finding out MySQL server address and port ?

2002-06-21 Thread Christian Leberfinger
Most MySQL-Servers don't allow connections from extern hosts. I don't think, Lycos will be an exception... =) Regards, Christian Leberfinger > -Original Message- > From: Matt [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 21, 2002 12:53 PM > To: [EMAIL PROT

RE: [PHP-WIN] crypt() on windows

2002-06-20 Thread Christian Leberfinger
I know about this solution, but I'm not very happy with it. The idea of my script is, that it's one single script-file. This makes it easy to install and to handle for the users. I hope, you understand me... Christian Leberfinger PS: I think, Apache didn't recognize your

RE: [PHP-WIN] How to Show my Own Error Message Instead of Mysql Error?

2002-06-20 Thread Christian Leberfinger
he count(*) and before PHP is inserting. Then PHP thinks, the user doesn't exist [count(*)== 0] and the insert fails because of duplicate keys. -> always check the mysql_error Regards, Christian Leberfinger -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] crypt() on windows

2002-06-20 Thread Christian Leberfinger
Crypt() is supported by windows systems, but it uses other encryption mechanisms than crypt() on unix-systems...that means it returns other encrypted strings. So when Apache compares the crypt()ed string with the one stored in the .htpasswd, it fails and you can't gain access... Is there no way

[PHP-WIN] crypt() on windows

2002-06-20 Thread Christian Leberfinger
Does anyone have a solution for crypt()-support on windows-based webserver-systems? I'm the developer of PHPAccess - the admin tool for htaccess-security on Apache-servers and I don't get it to create a crypted password that is recognized by Apache's htaccess. Help! Christ