|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 08 02:05:49 2023 UTC