[Xitami] Xitami PHP Header Redirect issues...

Webb, Paul pwebb at webbenabled.com
Wed Jun 14 20:37:20 CEST 2006


Magnus Wedberg wrote:
> Um, just a stupid question, but you aren't sending anything else to 
> the client before are you? The redirect needs to be received by the 
> client exclusively or it won't work. In your situation I would telnet 
> to the server, GET the page, and see what response there is.
>
>   
Nope. I even plugged in your header line just to be sure that it wasn't
me being stupid. Here's the content of the current index.php file:

<?php
    error_reporting(E_ALL);
    ini_set('display_errors', true);
    header("Location: http://www.magnuswedberg.com/");
?>

The first two lines are me trying to get something, anything out of PHP
to indicate that something could be wrong on it's end. I still see nothing.

Additionally, I've been looking at what is displayed in the access logs.
Here's what I get when I request index.php:

10.0.143.51 - - [14/Jun/2006:13:59:01 -0500] "GET / HTTP/1.1" 200 0 "" ""
10.0.143.51 - - [14/Jun/2006:13:59:04 -0500] "GET / HTTP/1.1" 200 0 "" ""
10.0.143.51 - - [14/Jun/2006:13:59:06 -0500] "GET / HTTP/1.1" 200 0 "" ""
10.0.143.51 - - [14/Jun/2006:14:00:19 -0500] "GET / HTTP/1.1" 200 0 "" ""
10.0.143.51 - - [14/Jun/2006:14:01:26 -0500] "GET / HTTP/1.1" 200 0 "" ""
10.0.143.51 - - [14/Jun/2006:14:04:56 -0500] "GET / HTTP/1.1" 200 0 "" ""

Note the 0 byte-count that is returned, and the fact that there's
nothing in the referrer section at the end. Here's a normal one from the
same log file:

10.0.143.51 - admin [14/Jun/2006:14:09:37 -0500] "GET /admin HTTP/1.1"
200 4130 "" ""
10.0.143.51 - admin [14/Jun/2006:14:09:37 -0500] "GET /admin/$left.gif
HTTP/1.1" 200 179 "http://10.0.143.253/admin" ""
10.0.143.51 - admin [14/Jun/2006:14:09:37 -0500] "GET /admin/$help.gif
HTTP/1.1" 200 213 "http://10.0.143.253/admin" ""
10.0.143.51 - admin [14/Jun/2006:14:09:37 -0500] "GET /admin/$right.gif
HTTP/1.1" 200 182 "http://10.0.143.253/admin" ""
10.0.143.51 - admin [14/Jun/2006:14:09:37 -0500] "GET
/admin/$console.gif HTTP/1.1" 200 281 "http://10.0.143.253/admin" ""

What I'm seeing from here is that nothing is being passed back from PHP
to Xitami to tell it where to redirect to. The question is, why not?

And just for kicks, here's the first few lines of my php.ini file:

[PHP]
   allow_call_time_pass_reference    = On
   allow_url_fopen            = On
   asp_tags                = Off
   auto_append_file            =
   auto_prepend_file            =
   cgi.force_redirect            = 0
   default_mimetype            = "text/html"
   default_socket_timeout        = 60
   disable_functions            =
   disable_classes            =
   display_errors            = On

Very, very confusing.... If you'd like, take a look yourself. You can
get to the test server at http://www.journalcommunity.com:8084, and
index.php is the default page.

Thanks!
-- 
Paul Webb
WebbEnabled Solutions, LLC (vCard
<http://www.webbenabled.com/%7Epwebb/vcard/WebbPaul.vcf>)
pwebb at webbenabled.com <mailto:pwebb at webbenabled.com> (PGP/GPG Encryption
Capable)
http://www.webbenabled.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.imatix.org/pipermail/xitami/attachments/20060614/b6a2452c/attachment.html


More information about the Xitami mailing list