Stream naming issue

Jul 9, 2010 at 11:40 AM

I'm using php://output as filename because I rather not save any files on the server. However doing so gives me two problems:

1. The name of the file becomes the name of the php script that creates it
2. The extension becomes .zip in the IE save as box

Are these problems possible to overcome or do I have to save the file on the server first?

Jul 16, 2010 at 8:16 AM

Ok so I solved this by saving the doc as a file to a temp directory and imediately set header("Location") to that document. Next time a report is generated I delete all previously generated documents before I generate a new one.

It would have been nicer to set the name and extension using php://output though

Thanks for a great extension, really nice work!