Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- C. MÃ¼ller
January 16, 2008, 11:10 am
rate this thread
First, I am very new to php. Bloody Beginner.
My problem is, that i want the user to be able to download a generated
xml file. I have working code which savies it to a file and sends it:
$fp = fopen($xml_file,'a');
Is it possible to avoid writing the file? the $result contains all
data. how can I do this? Can someone help me with the command to send
data back to the user? I found similar code in
Should i provide some information about the xml mine type?
Thanks for help!
Re: Download xml file
If this is the only thing your function does, you can just set the
content type and disposition and send the file.
The problem comes if your script also outputs something else - i.e.
html, images, etc. Each of those types has its own content type and
disposition, and a document can't have more than one.
Remove the "x" from my email address
JDS Computer Training Corp.
- » Is This A Good Structure For What I Am Trying To Achieve With The Languages?
- — Next thread in » PHP Scripting Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum