Re: [PHP] Best way to describe Doc as HTML

2001-01-26 Thread Alex Black

   print "Content-type: text/html\n\n";

That's the "perl" method, because perl doesn't have any native functions for
adding stuff to the response header, so you just print it :)


   header( "Content-type: test/html" );

The above is correct.

_alex


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Best way to describe Doc as HTML

2001-01-25 Thread Karl J. Stubsjoen

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?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Best way to describe Doc as HTML

2001-01-25 Thread php3

Addressed to: "Karl J. Stubsjoen" [EMAIL PROTECTED]
  [EMAIL PROTECTED]

** Reply to note from "Karl J. Stubsjoen" [EMAIL PROTECTED] 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]