Re: [PHP-WIN] Newbie: Setting content type

2002-08-21 Thread Baz Langton
content type to > an xml page, as your test shows. The problem being is that phpinfo() > generates an html document, not an xml one. The error you got was explorer > telling you that it expected an xml doc but didn't receive one > > Ross > > > -Original Message- >

[PHP-WIN] Newbie: Setting content type

2002-08-21 Thread Baz Langton
How do I set the content type to text/xml?? I have a small php script which queries a database and returns the results as an xml document. However the flash application is not parsing the xml correctly and I believe it is because the response is in text/html. I've tired the following:- But thi

[PHP-WIN] newbie: XMLDOM

2002-08-13 Thread Baz Langton
Hi, I'm complete new to php and completely confused. my script so far includes $doc = domxml_new_doc("1.0"); $root = $doc->add_root("QUIZ"); $question=$root->new_child("QUESTION",""); which seem fine but when I try:- $q_element=$question->create_element("testElement"); OR $questionText=$questi