Output XML file!

From: Ansti (ansti_at_hot.ee)
Date: 02/23/05


Date: Wed, 23 Feb 2005 10:01:28 +0200

I have a XML variable (string). I want to output it to a XML file. I'm using

<?php
  header("Content-type: application/gps");
  header("Content-Disposition: attachment; filename=paring.xml");
print $xml;
?>

But I get an error message from my browser: "Cannot download 'filename'
file"



Relevant Pages

  • Re: PHP and RSS Feed
    ... actual php page that is parsing the pcworld xml file: ... function initArray() ... You can view the xml rss feed by visiting the link above. ... >> link located in the xml file. ...
    (comp.lang.php)
  • Re: xml in plain text file on heavy load.
    ... even if the XML file is magically and perfectly ... I want to emphasize that IIS would never be caching that XML file on its own ... Application is NOT synchronizing access to your ASP pages. ...
    (microsoft.public.inetserver.iis)
  • Re: TAPI 3.0 call attached data
    ... The format of the Call Attached Data is XML. ... XML file with CallAttchedData represents one or multiple data lists ... Root element is CallAttachedData. ... version CDATA #FIXED "1.0" ...
    (microsoft.public.win32.programmer.tapi)
  • XML_ERR_RESERVED_XML_NAME
    ... I am using xml_parse_into_struct on php version 5.0.3 and am getting ... the error message "Reserved XML Name" (using ... Could this be a bug in php or the xml extension? ...
    (comp.lang.php)
  • Re: XML parser and writer
    ... them on a calendar. ... Therefore I will need to both easily parse and write new XML files. ... why not some database technology? ... an advanced user can edit the XML file directly at ...
    (comp.lang.java.programmer)