view xml thru php

From: Date: Wed, 23 Jun 2004 13:58:11 +0000
Subject: view xml thru php
Groups: php.windows 
Request: Send a blank email to php-windows+get-24054@lists.php.net to get a copy of this message
Hi, Im trying to view a xml file (texttv.xml) thru php. <?php require("./classes/texttv.class"); $tv = new XMLTv4TextTV("texttv.xml"); $tv->Init(); $tv->WriteHeader(); $tv->CreateDataArray(); $tv->ArrayToXML(); $tv->Close(); header("Content-type: application/xhtml+xml"); readfile("texttv.xml"); ?> But its printed in html, its not a big deal but how can I do this correct? Thx // jocke

« previous php.windows (#24054) next »