Re: HTTP Header

From: Date: Mon, 04 Feb 2002 10:52:16 +0000
Subject: Re: HTTP Header
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83384@lists.php.net to get a copy of this message
Just use header(). header("HTTP/1.1 200"); header(Date: Mon, 04 Feb 2002 10:01:54 GMT"); etc., etc. Just make sure that they are all sent before you start any output to the browser. Mike ----- Original Message ----- From: "Daniel Reichenbach" <daniel.reichenbach@pixum.com> To: "Php-General" <php-general@lists.php.net> Sent: Monday, February 04, 2002 2:06 AM Subject: [PHP] HTTP Header > Hy list :-) > > I need to manually send the HTTP header with PHP. > > The following is an example what I have to send to the client: > > HTTP/1.1 200 OK > Date: Mon, 04 Feb 2002 10:01:54 GMT > Server: Apache/1.3.20 (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6 > Connection: Keep-alive, close > Expires: Thu, 01 Dec 1994 16:00:00 GMT > Content-Length: 1078 > Content-Type: text/plain > > How would I Do that with PHP? > > Thx, > Daniel > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#83384) next »