php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29317 $PATH_INFO not set
Submitted: 2004-07-22 11:06 UTC Modified: 2004-08-05 23:12 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: incitist at msn dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.0.0 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: incitist at msn dot com
New email:
PHP Version: OS:

 

 [2004-07-22 11:06 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-26 15:19 UTC] 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-08-05 23:12 UTC] edink@php.net
PATH_INFO is not supported by all web servers.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC