|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9075 CGI/ file download problem with URL http://x/myprog.php/filename
Submitted: 2001-02-02 10:11 UTC Modified: 2001-05-27 23:26 UTC
From: michel dot jansens at ulb dot ac dot be Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.4pl1 OS: Solaris 2.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: michel dot jansens at ulb dot ac dot be
New email:
PHP Version: OS:


 [2001-02-02 10:11 UTC] michel dot jansens at ulb dot ac dot be
To give a default filename for dynamic file download I use the url:<filename>
where <filename> is the filename on which the result of myscript.php will be saved
The /<filename> is usually forgotten by php and the brozsers uses it as default filename for the download.
This works well with Apache1.3.x and the DSO module version of php4.0.4.pl1 but not with the CGI version

I tryed compiling php with and without --force-cgi-redirect


rem myscript.php is of the form:
 $res = getattach($mbox,$mailuid,$atpos,$attachment,$type,$subtype);
 if($res) $head = sprintf("Content-Type: %s/%s\n\r\n",$type,$subtype);
 print $attachment;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-27 23:26 UTC]
Reopen if this happens also with soon to be released PHP 4.0.6.


PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Dec 04 14:05:54 2022 UTC