Re: Best way to describe Doc as HTML
| From: | php3 at developersdesk dot com | Date: | Thu, 25 Jan 2001 17:03:22 +0000 |
| Subject: | Re: Best way to describe Doc as HTML | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-36653@lists.php.net to get a copy of this message | ||
Addressed to: "Karl J. Stubsjoen" <karlflips@kstub.com>
php-general@lists.php.net
** Reply to note from "Karl J. Stubsjoen" <karlflips@kstub.com> Thu, 25 Jan 2001
08:36:43 -0700
>
> Hello, So I think I've found 3 ways to describe the HTML Doc as
> "HTML". Which one is the best?
>
> 1) Via MetTag (this was generated in Dreamweaver):
>
> <head> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1"> </head>
>
> 2) Print Statement at top of page:
>
> print "Content-type: text/html\n\n";
>
> 3) Using the PHP Header command:
>
> header( "Content-type: test/html" );
>
> What do you think?
>
4) Do nothing. text/html is the default content type for php. A
Content-type: text/html header is sent for you unless you specify
something else.
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com