Create xml file with php


SUBMITTED BY: Guest

DATE: April 30, 2013, 9:09 a.m.

FORMAT: PHP

SIZE: 375 Bytes

HITS: 1026

  1. $fp = fopen("xlsfile://tmp/test.xls", "wb");
  2. if (!is_resource($fp)) {
  3. die("Cannot open excel file");
  4. }
  5. $data= array(
  6. array("Name" => "Bob Loblaw", "Age" => 50),
  7. array("Name" => "Popo Jijo", "Age" => 75),
  8. array("Name" => "Tiny Tim", "Age" => 90)
  9. );
  10. fwrite($fp, serialize($data));
  11. fclose($fp);

comments powered by Disqus