php.net |  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
 [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: http://mysrv.com/myscript.php/<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

Thanks

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);
 header($head);
 print $attachment;
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

--Jani

 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Nov 28 08:05:53 2022 UTC