view xml thru php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux