I'm trying to make a perl script that returns XML instead of HTML.
my script currently looks like this...
which creates the following xml fileCode:#!/usr/bin/perl # #print xml info print "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"; print "<programlist>\n"; print "</programlist>\n";
this works fine if i save the output to a file and view it in a browser however if i run the perl script in my browser I get a "500 Internal Server Error".Code:<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <programlist> </programlist>
Looking at the apache error log i get
does anyone know how to stop this???Code:malformed header from script. Bad header=<?xml version="1.0" encoding=": /usr/local/apache/cgi-bin/getChannels.pl
Thanks for your help
Mrs K




Reply With Quote