LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > $_server['pass_translated']

Reply
 
Thread Tools Display Modes
  #1  
Old 05-25-2008, 10:29 AM
Jinx Jinx is offline
New Member
 
Join Date: May 2008
Posts: 5
Exclamation $_server['pass_translated']

I am unable to get a value for the PASS_TRANSLATED element of $_SERVER. Is there a way to fix this or is it just unsupported? I'm using LSAPI PHP 4.4.8 but I also tried it with PHP 5 and it produced the same result. Thanks!
Reply With Quote
  #2  
Old 05-25-2008, 07:01 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
should be PATH_TRANSLATED . PATH_INFO should be used.
Reply With Quote
  #3  
Old 05-26-2008, 05:48 PM
Jinx Jinx is offline
New Member
 
Join Date: May 2008
Posts: 5
Actually that is what I ment (sorry for the confusion),

<?php
echo $_SERVER['PATH_TRANSLATED'];
?>

and

<?php
echo $_SERVER['PATH_TRANSLATED . PATH_INFO'];
?>

produce no output.
Reply With Quote
  #4  
Old 05-26-2008, 08:05 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
It will not be set when there is no PATH_INFO in the request URL.
You can try a URL like

http://yousite.com/phpinfo.php/path/info

PATH_TRANSLATED should be there.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:51 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.