Ho risoltoGrazie comunque
![]()
ho fatto così:
CiaociaoCodice PHP:<?php
if (!$p_file = fopen("dati.txt","r")) {
echo "Errore nell'aprire il file.";
} else {
while(!feof($p_file))
{
$filename = "dati.xls";
$stringa = fgets($p_file);
header ("Content-Type: application/vnd.ms-excel");
header ("Content-Disposition: inline; filename=$filename");
echo"<table>";
echo"$stringa";
echo"</table>";
}
fclose($p_file);
}
?>![]()

Grazie comunque
Rispondi quotando