I am running a Solaris 10 system with Apache 2.2.4 and PHP v5.2.3 loaded 
as a module.  When I run the following code:

<?php

$docroot = $_SERVER['DOCUMENT_ROOT'];
$filename = $_SERVER['SCRIPT_FILENAME'];
$pathtrans = $_SERVER['PATH_TRANSLATED'];
$scriptname = $_SERVER['SCRIPT_NAME'];

echo '<p>Document root= '.$docroot.'</p>';
echo '<p>Filename= '.$filename.'</p>';
echo '<p>Path (Pathtrans value) = '.$pathtrans.'</p>';
echo '<p>Scriptname= '.$scriptname.'</p>';


?>

I get the expected values for document root, script filename, and 
scriptname but my path variable is empty.  This same script returns values 
for all lines when run against my PHP v4 instance (Solaris 9, Apache 
1.3.37, PHP v4.4.1 loaded as a module).  I believe the blank path variable 
setting is causing issues with includes in various PHP scripts. 

What do I need to change to get the path_translated and related path_info 
variables set?  I have tried setting AcceptPathInfo to On in the Apache 
configuration file but still get the same result.

Thank you all for your time.

Jesse

Jesse Santana
Project Lead - Enterprise Services Group
Information Technology Services
California State University, Long Beach
1250 Bellflower Blvd.
Long Beach, CA  90840
Office: (562)985-8511
Fax:     (562)985-8855

Reply via email to