Jump to content

excel file


asmith

Recommended Posts

hey guys

 

i found 3, 4 scripts on the net for "how to create an excel file"  ,  they all require a file name "excel.php" ,  with the label "excel handler" . for example :

 

require_once "excel.php";
$filename = "theFile.xls";

$export_file = "xlsfile://tmp/".$filename;
$fp = fopen($export_file, "wb");

$assoc = array(
array("First name" => "Mattias", "IQ" => 250,
array("First name" => "Tony", "IQ" => 100,
array("First name" => "Peter", "IQ" => 100,
array("First name" => "Edvard", "IQ" => 100);

fwrite($fp, serialize($assoc));
fclose($fp);

 

 

 

for creating a file with excel do i really need to use this handler ?  can i just create it with simple php codes ?

Link to comment
https://forums.phpfreaks.com/topic/86435-excel-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.