Date: 11/18/02
- Next message: Philip Olson: "[PHP-DOC] cvs: phpdoc /en/reference/var/functions is-callable.xml"
- Previous message: James Cox: "RE: [PHP-DOC] phpdoc building woes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 20453
Updated by: philip <email protected>
Reported By: clewis <email protected>
-Status: Analyzed
+Status: Assigned
Bug Type: Documentation problem
Operating System: RedHat 7.3
PHP Version: 4.2.3
-Assigned To:
+Assigned To: philip
New Comment:
Am working on this. There are several REDIRECT_* predefined vars to
use.
See also: http://httpd.apache.org/docs/custom-error.html
Previous Comments:
------------------------------------------------------------------------
[2002-11-16 01:51:34] sniper <email protected>
This is how Apache behaves. It doesn't set QUERY_STRING when
page is not found as it's redirected.
You can test this with putting phpinfo() into your 404 script. Search
for "REDIRECT_QUERY_STRING" in the "Apache Environment" section..
(it's also in _SERVER var)
------------------------------------------------------------------------
[2002-11-15 18:20:58] clewis <email protected>
$_SERVER['QUERY_STRING'] is empty in our 404-handling script, which is
displayed when the user's URL is not found. The query string appears
correctly in REQUEST_URI, so the data is there, it's just not getting
into the QUERY_STRING var.
Here are some dumps of the $_SERVER array, for an existing script, and
a bad URL that displays the 404 script:
(user: bugzilla; Pass: bugzz)
http://clewis.myfonts.com/exists.php?stuff=things
http://clewis.myfonts.com/notexist.php?stuff=things
Using Apache 1.3.26, PHP 4.2.3, configured with
'./configure' '--prefix=/usr/local' '--with-apache=../apache'
'--with-mysql=/usr/local' '--with-curl' '--with-gd' '--with-mcrypt'
'--with-pspell' '--enable-apc' '--with-zlib'
-Chris
------------------------------------------------------------------------
-- Edit this bug report at http://bugs.php.net/?id=20453&edit=1-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Philip Olson: "[PHP-DOC] cvs: phpdoc /en/reference/var/functions is-callable.xml"
- Previous message: James Cox: "RE: [PHP-DOC] phpdoc building woes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

