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
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 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 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