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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 + 2 = ?
Subscribe to this entry?

 
 [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-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 08 02:05:49 2023 UTC