PHP 4.0 Bug #1546 Updated: Unable to pass path info while using php in cgi mode.
| From: | andre@php.net | Date: | Wed, 21 Feb 2001 19:01:54 +0000 |
| Subject: | PHP 4.0 Bug #1546 Updated: Unable to pass path info while using php in cgi mode. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47158@lists.php.net to get a copy of this message | ||
ID: 1546
Updated by: andre
Reported By: alec@brainpod.com
Old-Status: Open
Status: Analyzed
Bug Type: *Web Server problem
Assigned To:
Comments:
user patch suggestion:
30,31d29
< #include <sys/types.h>
< #include <sys/stat.h>
278c276
< #if 0
---
> #if 0
384,385d381
< struct stat statbuf;
< char *lastslashptr;
707,721d702
<
< /*allow use of extended path in URL
< (e.g:
http://.../file.php/downloadfn.exe?name="me"&...
< */
< lstat(env_path_translated,&statbuf);
< while(strlen(env_path_translated)!=0 &&
!S_ISREG(statbuf.st_mode)
< && !S_ISLNK(statbuf.st_mode) &&
!S_ISDIR(statbuf.st_mode))
< {
<
< lastslashptr=strrchr(env_path_translated,'/');
< if(lastslashptr)*lastslashptr='\0';
< stat(env_path_translated,&statbuf);
< }
<
<
Previous Comments:
---------------------------------------------------------------------------
[2001-02-10 13:26:36] jimw@php.net
refiling as bug against 4.0.
---------------------------------------------------------------------------
[1999-06-16 01:16:02] alec@brainpod.com
I am unable to pass pathinfo to my script while using php in cgi mode.
The problem in particular (maybe you all know of a workaround) is I'm trying to create a
download script. While using PHP in cgi mode I can't get Netscape and IE to assign the
download the proper name...
A possible solution could be a path_info translation something like:
http://www/cgi-bin/php/scriptdir/script.php3;/path_infoToPassToScript
Let me know what you think...
P.S. The PHP base library is awesome and I wouldn't mind seeing future versions of PHP having
the DB abstraction libraries that the PHP base library offers built in.
Alec Effrat
Brainpod Technical Consulting
alec@brainpod.com
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=1546&edit=2