Jump to content

Using Xml in php


zohab

Recommended Posts


See if you want to use XML for download purpose, place all the contents in a file.
and make it available for download option.

[code]
header("Pragma: public");
header("Cache-Control: max-age=0");
header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename="filename.xls");
header("Expires: 0");
[/code]

after this code specify all the column names.

arrange the data in rows.

Hope i am not wrong! if so anyone please correct  me!
Link to comment
https://forums.phpfreaks.com/topic/26137-using-xml-in-php/#findComment-119554
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.