Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to make xml file downloadable

    well i have xml file and i want it to make downloadable but
    when i do <a href=..> it simply opens the file on browser
    and do not show save option as any other file wirh <a href=..>
    if any body can help
    thanx in advance
    @nurag

  • #2
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Is that a PHP file?
    If you you have to send a Content-Disposition header:
    PHP Code:
    header('Content-Disposition: attachement'); 
    Place it somewhere at the top of the script.
    I'm not sure if this was any help, but I hope it didn't make you stupider.

    Experience is something you get just after you really need it.
    PHP Installation Guide Feedback welcome.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •