Re: output htmkl file as text

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

 



* Thus wrote Jerry Swanson:
> I want to output html file on the screen like text not like html file. 
> I want a program to read html file and output source code to the screen.
> 
> Any ideas how to fake browser, so browser will print html tags on the screen?

By default php will send a header:
  Content-Type: text/html; charset=iso-8859-1

To the browser, so it will render the contents as html.

You can override that by using the header() function sending:
  Content-Type: text/plain; charset=iso-8859-1

Then you can display html and the html will get displayed as if you
were looking at it in notepad.


Curt
-- 
Quoth the Raven, "Nevermore."

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux