tags:

views:

36

answers:

1

I am creating an xml file on the fly. When a user generates this file I want it to open up a download file dialog with the content that was generated. There is no actual file because it is just generated through php. Any ideas on how to do this?

+2  A: 

Send a content-disposition attachment header.

David Dorward
You obviously didnt read my post. There is no actual file to read. It is just sent to the page and I do not want to create a file just be able to download what it generates.
ngreenwood6
@ngreen you obviously didn't read the linked article. set the said header and echo out the xml data.
Amarghosh
oh nice I thought you actually had to assign it that file...thanks for the info
ngreenwood6