Date: 07/01/00
- Next message: Thomas Schuermann: "[PHP-DOC] cvs: phpdoc /de/functions strings.xml"
- Previous message: Stefan Livieratos: "[PHP-DOC] cvs: phpdoc /de/functions http.xml /en/functions http.xml /it/functions http.xml /ja/functions http.xml"
- In reply to: Hojtsy Gabor: "[PHP-DOC] error in header() docs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In PHP 4 it is case sensitive. Make it HTTP/ instead of http/ and it will
work. This is a bug.
-Rasmus
On Sat, 1 Jul 2000, Hojtsy Gabor wrote:
> Hello!
>
> I tried the special http/1.0 syntax as documented in
> the header() function. It is not working. I don't
> know if it is the mistake of the docs, or not, but
> Apache says that this is a bad header. This is sent
> as is, without processing the special syntax:
>
> >From the docs:
>
> ----------------------------------------------------
> The second special-case is any header that starts
> with the string, "HTTP/" (case is not significant).
> For example, if you have your ErrorDocument 404
> Apache directive pointed to a PHP script, it would
> be a good idea to make sure that your PHP script
> is actually generating a 404. The first thing you
> do in your script should then be:
>
> 1
> 2 header ("http/1.0 404 Not Found");
> 3
> -----------------------------------------------------
>
> I know this was not my mistake, because I copied exactly
> this line to my code, and get this Apache error.
>
> >From the Apache error.log:
>
> ... malformed header from script. Bad header=http/1.0 404 Not Found ...
>
> This list is for docs, and this is not working as it
> is documented. I am using 3.0.16, but it says it will
> work both in PHP3 and 4.
>
> Hi,
> Hojtsy Gabor (Goba)
> _____________________________________________________________________
> A kiindulopont webmestereknek - http://weblabor.hu/
>
>
>
>
- Next message: Thomas Schuermann: "[PHP-DOC] cvs: phpdoc /de/functions strings.xml"
- Previous message: Stefan Livieratos: "[PHP-DOC] cvs: phpdoc /de/functions http.xml /en/functions http.xml /it/functions http.xml /ja/functions http.xml"
- In reply to: Hojtsy Gabor: "[PHP-DOC] error in header() docs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

