Re: Re: PHP 4.0 Bug #6093 Updated: Fatal error: Unable to open D:\Jana\html in Unknown on line 0
| From: | Andi Gutmans | Date: | Wed, 01 Nov 2000 16:39:31 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #6093 Updated: Fatal error: Unable to open D:\Jana\html in Unknown on line 0 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-36675@lists.php.net to get a copy of this message | ||
There have always been complaints on this issue because it seems like every web server likes to do it differently.
Can you point us to the RFC where it says what variable should be used? Right now when we have DISCARD_PATH enabled we are using SCRIPT_FILENAME and when we don't we are using PATH_TRANSLATED.
I am not sure if this logic is correct but it seems to work on Apache/UNIX and Apache/Windows, and IIS/Windows.
Andi
At 03:28 PM 11/1/00 +0100, Thomas Hauck wrote:
Hallo, i solved the Problem. I downloaded the source-code of php4 and after looking for a few minutes i found the error. You gays should somewhere tell the other people that php4 has a build in error, and whants the scriptname as PATH_TRANSLATED to execute it. At least that is what the comment in the source of php4 says. As far as i know, is this because the apache server software for NT has this error. That means all other serversoftware has to build in the same error for the PATH_TRANSLATED variable. Whould it not be better to ask for the server-software environment variable and go the standard way if it is not apache for NT. As far as i know, is the PATH_TRANSLATED environment variable the physical translation of the PATH_INFO environment variable, and not the script filename. Sorry about my bad english. Mfg. T.Hauck Telefon : 07041/860686 ab 18.00 Uhr Email: T.Hauck@jana-server.ocm.de--- Andi Gutmans <andi@zend.com> http://www.zend.com/T.Hauck@t-online.deWeb: http://www.jana-server.ocm.de/http://home.t-online.de/home/T.Hauck/----- Original Message ----- From: "Bug Database" <php-dev@lists.php.net> To: <T.Hauck@t-online.de> Sent: Wednesday, November 01, 2000 3:05 PM Subject: PHP 4.0 Bug #6093 Updated: Fatal error: Unable to open D:\Jana\html in Unknown on line 0 ID: 6093 Updated by: sniper Reported By: T.Hauck@t-online.de Status: Feedback Bug Type: *General Issues Assigned To: Comments: Have you tried using PHP4.0.3pl1 ? Does the problem still exist? --Jani Previous Comments: -------------------------------------------------------------------------- - [2000-08-10 23:09:01] T.Hauck@t-online.de Hallo, i'am writting a Http-Server for Windows. I prev. used PHP 3.0.16 and it worked fine. No i installed a PHP 4.0.1pl2 and i will get on the same scripts this message: Fatal error: Unable to open D:Janahtml in Unknown on line 0 where D:Janahtml ist the root directory of the scripts. I tracked it so far down, that if i do not set a few specific eniroment varibals, it works. I include a list with all the enviroment variables the http-server sends. If i leave the ones marked with a * away it works ! COMPUTERNAME=THOMAS COMSPEC=C:WINNTsystem32cmd.exe DOCUMENT_ROOT=D:Janahtml *GATEWAY_INTERFACE=CGI/1.1 HOME=D:Janahtml HOMEDRIVE=C: HOMEPATH= HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */* HTTP_ACCEPT_ENCODING= HTTP_ACCEPT_LANGUAGE=de HTTP_COOKIE=last_loginid=Thomas HTTP_HOST=thomas HTTP_REFERER= HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) INCLUDE=D:ProgrammeMS-StudioVC98atlinclude;D:ProgrammeMS-StudioVC98mfcinclud e;D:ProgrammeMS-StudioVC98include;d:CenturaCAPI LIB=D:ProgrammeMS-StudioVC98mfclib;D:ProgrammeMS-StudioVC98lib;d:CenturaCAPI LOGONSERVER=\THOMAS MSDEVDIR=D:ProgrammeMS-StudioCommonMSDev98 NUMBER_OF_PROCESSORS=1 OS2LIBPATH=C:WINNTsystem32os2dll; OS=Windows_NT PATH=C:Perlbin;C:WINNTsystem32;C:WINNT;D:Centura;D:ProgrammeSymantecpcAnywhe re;C:Phpbin;D:ProgrammeMS-StudioCommonToolsWinNT;D:ProgrammeMS-StudioCommonM SDev98Bin;D:ProgrammeMS-StudioCommonTools;D:ProgrammeMS-StudioVC98bin PATH_INFO= PATH_TRANSLATED=D:Janahtml PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 6 Model 7 Stepping 3, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=0703 QUERY_STRING= REMOTE_ADDR=190.111.111.77 REMOTE_HOST=190.111.111.77 REMOTE_PORT=2629 *REQUEST_METHOD=GET REQUEST_URI=/env.pl SCRIPT_NAME=/env.pl SERVER_ADDR=190.111.111.77 SERVER_ADMIN=T.Hauck@t-online.de *SERVER_NAME=thomas SERVER_PORT=80 SERVER_PROTOCOL=HTTP/1.1 *SERVER_SOFTWARE=Jana-Server/2.0 SYSTEMDRIVE=C: SYSTEMROOT=C:WINNT TEMP=C:TEMP TMP=C:TEMP USERDOMAIN=THOMAS USERNAME=Thomas USERPROFILE=C:WINNTProfilesThomas WINDIR=C:WINNT (generatet with a perl-script, because php does't work) There must be some reason for that message with the enviroment variables. By the way the php.ini file i left unchanged and copyed it to the Windowsdirectory. It would be greate to here from you soon. What i'am doing wrong. Thanks Thomas Hauck, Germany Http://www.jana-server.ocm.de/ Mail:T.Hauck@t-online.de -------------------------------------------------------------------------- - Full Bug description available at: http://bugs.php.net/?id=6093 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net