The raw xml. I tried header("Location: $file"); but its not working in
IE. NN works fine. 

http://www.lokalguiden.se/tv4/texttv.php

Any ideas?

"Jason Barnett" <[EMAIL PROTECTED]> skrev i meddelandet
news:<[EMAIL PROTECTED]>...
> Joakim Ling wrote:
> 
> > Hi,
> > 
> > Im trying to view a xml file (texttv.xml) thru php.
> > 
> 
> Are you wanting to see the raw xml?  You can do it like so:
> 
> <?php
> 
> $file = './path/to/file.xml';
> header("Location: $file");
> 
> ?>
> 
> Or, are you wanting to have the xml as part of the php script's
output? 
>   Then you might do this:
> 
> <?php
> 
> $file = './path/to/file.xml';
> $xml = file_get_contents($file);
> echo '<pre>';
> echo htmlentities($xml);
> 
> ?>

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

Reply via email to