Salve, come faccio a tramutare il seguente script per fargli scrivere a schermo invece che su file di testo?
$string="abcd";
$fp=fopen("./program.txt", "w+");
for($a=0; $a<strlen($string); $a++) {
for($b=0; $b<strlen($string); $b++) {
for($c=0; $c<strlen($string); $c++) {
for($d=0; $d<strlen($string); $d++) {
fwrite($fp, $string{$a}.$string{$b}.$string{$c}.$string{$d}."\ r\n");
}
}
}
}
fclose($fp);
Grazie.