php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15955 header("Location: ...") doesn't work
Submitted: 2002-03-08 07:12 UTC Modified: 2002-03-11 06:22 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: t dot zander at brain-at-work dot de Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.1.2 OS: Win 98 SE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
29 - 26 = ?
Subscribe to this entry?

 
 [2002-03-08 07:12 UTC] t dot zander at brain-at-work dot de
Hi,

I'm running PHP 4.1.2 with Apache 1.3.x.

And in my projekt the function header("Location: ... ") doesn't work :(

I tried this with several projects. Always the same effect. The browser/server seems to ignore the command. If I use the same browser on an other server it works fine.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-08 07:21 UTC] cynic@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

 [2002-03-08 07:27 UTC] t dot zander at brain-at-work dot de
so,

i don't get any error message or anything else

only a blank site, with nothing

also the log files don't have anything

it's really like he's ignoring the header function with 4.1.2 on win 98 se
 [2002-03-08 07:30 UTC] sniper@php.net
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php


 [2002-03-08 07:38 UTC] t dot zander at brain-at-work dot de
lol?

i'm not a noob, that's not a support question it's a bug

i wrote enough projects to decide whats a bug and when i'm to silly to code something
 [2002-03-08 07:52 UTC] sniper@php.net
Without complete, short script that fails I'm pretty sure
you're doing something wrong.

--Jani

 [2002-03-08 07:59 UTC] t dot zander at brain-at-work dot de
what's wrong with following file:

<?php
header("Location: http://www.php.net");
?>

When it works on other servers, but not on 98SE with 4.1.2

with 98SE and 4.1.1 it's also working
 [2002-03-11 05:59 UTC] hholzgra@php.net
well, for a start: "http://www.php.net" is *not* a valid
URL, "http://www.php.net/" is

the trailing slash behind the Hostname is required by
the RFCs
 [2002-03-11 06:03 UTC] t dot zander at brain-at-work dot de
arg php.net was just an exapmle :)

i'm calling header("Location: artikel.php?".$QUERY_STRING);
;)
 [2002-03-11 06:07 UTC] derick@php.net
Even worse, the protocol and full hostname are required too by the RFCs.

Derick
 [2002-03-11 06:22 UTC] t dot zander at brain-at-work dot de
you won :) i'll try this :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 02:01:30 2024 UTC