[PHP-WIN] Re: what's wrong with this while loop?

2005-06-06 Thread M. Sokolewicz
the problem with your loop is that after php enters it, it can't get out because there is no break, nor a way to turn the expression to false. Normally, you have a loop which always evaluates to TRUE, and when it doesn't, you want to quit. And even when this is not how you did it, eg with whil

[PHP-WIN] what's wrong with this while loop?

2005-06-06 Thread bo
Following my code is to write a 15digit random generated password into a file named test.txt. I was trying to keep it random generating 100 passwords and be written into test.txt by using a while loop, however, the result is strange. Take a look at the code (most of it is from php.net) and what

[PHP-WIN] openssl_pkey_new does not seem to generate a new key

2005-06-06 Thread steven.xu
php 4.3.10, openssl-0.9.6m OPENSSL_CONF,SSLEAY_CONF environmental variable has been set $opensslconf); $privkey = openssl_pkey_new($config); while ($msg = openssl_error_string()) echo $msg . "\n"; openssl_pkey_export($privkey, $keydata); echo $keydata; ?> the php execute result: error:02

[PHP-WIN] openssl_pkey_new does not seem to generate a new key

2005-06-06 Thread steven.xu
php 4.3.10, openssl-0.9.6m OPENSSL_CONF,SSLEAY_CONF environmental variable has been set $opensslconf); $privkey = openssl_pkey_new($config); while ($msg = openssl_error_string()) echo $msg . "\n"; openssl_pkey_export($privkey, $keydata); echo $keydata; ?> the php execute result: error:02