Hello,
I've got a maybe easy to solve problem, but I don't know how. Perhaps anybody of you can help me.
Thanks.
//The function works correct
function getNewPassword(){
$exec_command = "perl /raid5/www2/www.main-shop.de/cgi-bin/pass_gen.pl";
$new_pass = passthru($exec_command);
//sleep(1);
return $new_pass;
}
$neupass = "";
//testvalue
if(1){
$neupass = "-";
$neupass = getNewPassword();
echo $neupass;
}
else{
$neupass = "-";
echo $neupass;
}
echo $neupass;
//Now the echo command won't show any ouput! Why! Is variable unset or something like this?