[Xitami] Xitami PHP Header Redirect issues...
Ron Ackerman
ronackgen01 at bellsouth.net
Wed Jun 14 23:56:18 CEST 2006
I tried this
<?php
header("Location: HYPERLINK
"http://www.magnuswedberg.com/\\n"http://www.magnuswedberg.com/\n");
?>
and it worked just fine
HYPERLINK
"http://www.miplanet.net/old/test2.php"http://www.miplanet.net/old/test2.php
Try putting in a php file all by itself and see if it works, if you have it
with other stuff it might be elsewhere in your code.
What version of PHP are you using and is this on the linux or win box or
both. Can we see your php.ini? Can you do a phpinfo();
Ron
_____
From: xitami-bounces at lists.xitami.org
[mailto:xitami-bounces at lists.xitami.org] On Behalf Of Webb, Paul
Sent: Wednesday, June 14, 2006 2:37 PM
To: Xitami Users General Discussion
Subject: Re: [Xitami] Xitami PHP Header Redirect issues...
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: HYPERLINK
"http://www.magnuswedberg.com/"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 HYPERLINK
"http://10.0.143.253/admin""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 HYPERLINK
"http://10.0.143.253/admin""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 HYPERLINK
"http://10.0.143.253/admin""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 HYPERLINK
"http://10.0.143.253/admin""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 HYPERLINK
"http://www.journalcommunity.com:8084"http://www.journalcommunity.com:8084,
and index.php is the default page.
Thanks!
--
Paul Webb
WebbEnabled Solutions, LLC (HYPERLINK
"http://www.webbenabled.com/%7Epwebb/vcard/WebbPaul.vcf"vCard)
HYPERLINK "mailto:pwebb at webbenabled.com"pwebb at webbenabled.com (PGP/GPG
Encryption Capable)
HYPERLINK "http://www.webbenabled.com"http://www.webbenabled.com
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.4/363 - Release Date: 6/13/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.4/363 - Release Date: 6/13/2006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.imatix.org/pipermail/xitami/attachments/20060614/db2cd748/attachment.htm
More information about the Xitami
mailing list