Ragazzi ho trovato questo codice per il web:
però stavo pensando se lo uso e qualcuno non ha Ms Excel come fa?codice:<?PHP $filename = "sheet.xls"; header ("Content-Type: application/vnd.ms-excel"); header ("Content-Disposition: inline; filename=$filename"); ?> <table border="1"> <?PHP for ($i=1; $i<11; $i++) { echo "<tr>"; for ($x=1; $x<11;$x++) { $r = $i * $x; echo "<td>$r</td>"; } echo "</tr>"; } ?> </table>
Come posso risolvere il problema? Verificando magari se il computer avetta questo mime-types: header ("Content-Type: application/vnd.ms-excel");?

 
			
			 
					
					
					
						 Rispondi quotando
  Rispondi quotando