#29317 [Opn->Bgs]: $PATH_INFO not set
| From: | edink@php.net | Date: | Thu, 05 Aug 2004 21:13:00 +0000 |
| Subject: | #29317 [Opn->Bgs]: $PATH_INFO not set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64149@lists.php.net to get a copy of this message | ||
ID: 29317
Updated by: edink@php.net
Reported By: incitist at msn dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Windows XP
PHP Version: 5.0.0
New Comment:
PATH_INFO is not supported by all web servers.
Previous Comments:
------------------------------------------------------------------------
[2004-07-26 15:19:18] cysgwr_eryri at yahoo dot co dot uk
PATH_INFO only exists "beyond" the script concerned. Your script is not
showing any info because you have no path.
Try typing the follwing url into your browser:
http://whatever.your.host.is/test.html/blah/bling/blee
You will see that the $_SERVER['PATH_INFO'] consists of:
"/blah/bling/blee" and nothing else.
To get the whole path string, use $_SERVER['REQUEST_URI'] instead.
------------------------------------------------------------------------
[2004-07-22 11:06:16] incitist at msn dot com
Description:
------------
I'm using Aprelium's Abyss Web Server and PHP 5.
When I try to open a url like script.php/test.html
$PATH_INFO is not set, irregardless of whether register globals is set
on or off.
Reproduce code:
---------------
<?php
header("Content-type: text/html");
if (isset($PATH_INFO)) print("$PATH_INFO");
else print("Not set");
?>
Expected result:
----------------
/test.html
Actual result:
--------------
Not set
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29317&edit=1