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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Parsing of index file and PHP_SELF

Reply
 
Thread Tools Display Modes
  #1  
Old 10-08-2005, 04:05 PM
chief chief is offline
New Member
 
Join Date: Oct 2005
Posts: 1
Default Parsing of index file and PHP_SELF

Hello,

I'm using the latest standard install of LS 2.1.2 std with PHP LSapi on a debian machine.

When the index file is not typed in the URL, PHP_SELF does not include the index filename and the dirname function returns a path one folder up. I've set up examples.

1) Under apache, http://www.nadzri.net/home/
2) Under LS, http://ja.nadzri.net/home/
3) Under LS, with index file appended, http://ja.nadzri.net/home/index.php

(3) = (1) but if index file is not in URL, the result is different.

(2) please note the missing "home" directory in the resultant URL, making a redirect using
Code:
dirname($_SERVER['PHP_SELF'])
return a 404.

Thanks and best wishes.
Reply With Quote
  #2  
Old 10-09-2005, 04:30 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Thank you for the bug report.

That's because the PHP_SELF is set to '/home/' instead of '/home/index.php' in the second test case. We will change it in next minor release to make LSWS behave like an Apache as much as possible.
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 12:35 AM.



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