php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #6776 Getting data from REDIRECT_QUERY_STRING
Submitted: 2000-09-16 13:32 UTC Modified: 2000-09-16 13:49 UTC
From: cap at capsi dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.0 OS: Linux 2.2
Private report: No CVE-ID: None
 [2000-09-16 13:32 UTC] cap at capsi dot com
When redirecting a page with a ErrorDocument 404 directive in Apache, one loses all GET variables. They are still available in REDIRECT_QUERY_STRING, but you'll need to parse that manually.

It would be really convenient if getenv() would allow a second, optional argument to parse a specific string as if it were a query string. Or even better, make them available automatically in HTTP_REDIRECT_VARS_GET[].

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-16 13:34 UTC] cap at capsi dot com
Oops:

And HTTP_REDIREC_VARS_POST[], of course.
 [2000-09-16 13:49 UTC] rasmus@php.net
parse_str() should be sufficient here.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jun 14 04:00:01 2026 UTC