Edit report at https://bugs.php.net/bug.php?id=11352&edit=1
ID: 11352
Updated by: ajf@php.net
Reported by: sgk at ppona dot com
Summary: HTTP server internal redirect
-Status: Open
+Status: Not a bug
Type: Feature/Change Request
Package: *General Issues
Operating System: *
PHP Version: *
Block user comment: N
Private report: N
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
This isn't really an issue with PHP, so much as an issue with HTTP servers.
Your HTTP server may offer a header for this if you look in its documentation.
Previous Comments:
------------------------------------------------------------------------
[2001-06-08 06:18:36] sgk at ppona dot com
(Feature request)
When using a CGI program with an HTTP server, a CGI program can cause an HTTP server to perform an
internal redirect. If the output of a CGI program has a "Location:" CGI header with a
virtual path (starts with '/') as a argument, a HTTP server will transmit a content of the
specified virtual path without requesting a browser to access a different URL.
see <http://hoohoo.ncsa.uiuc.edu/cgi/out.html>.
This feature is missing in the PHP environment. The header() function does not process such
"Location:/..." header specially as same in the CGI environment.
I have no idea about which is better to change header() function adding a few lines of C source to
process such special case, or to add a new PHP function like "internal_redirect(string
virtual_path)" without changing any of the behavior of existing function.
Shigeru Kanemoto
HappySize, Inc. (Japan)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=11352&edit=1