[cgiwrap-users] RE: #!/usr/bin/php
Brought to you by:
nneul
From: Daniel N. <dr...@gm...> - 2002-08-09 15:38:09
|
Hi, > You're saying that the script is physically located at: > /var/chroot/_nossh/k060881/htdocs/test.php no, it is physically located in /var/chroot/_nossh/k060881/htdocs/phpmagic.de/test.php (For testing reason, I also placed a test.php in /var/chroot/_nossh/k060881/htdocs/test.php - so that I'm able to access it. But I requested /var/chroot/_nossh/k060881/htdocs/phpmagic.de/test.php, cgiwrap just constructed a wrong path out of it :()) >I'm willing to change what cgiwrap does, so long as someone can provide >me a pointer to a reference that says exactly what PATH_TRANSLATED is >supposed to do, assuming that cgiwrap has the necessary information at >the time. > It does clearly look like it's bogus from cgiwrap. > That one makes it look like it should be DOCUMENT_ROOT + PATH_INFO. I > can do that if those vars are passed. (I believe they are). I think the PATH_INFO will for cgiwrap - cgiwrap itself. So it wouldn't be really useable > Alternatively, I can just leave it alone, and merely strip out the > "/user/" part? This will work, aslong the username will never occur as directoryname. For me it's fine. And would really help me and should work for everyone else, too. Bye daniel |