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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 07:01:33 2025 UTC