We have been running a piece of code we wrote several weeks ago, and suddenly it does not work. We are currently using PHP 4.1.2.
Here is the basics of the code...
The name of the code is TEST.PHP
We have an include statement at the beginning of this code that looks like this.....
include ("include.php");
We do an FTP_GET to download a file from our server.
After the FTP_GET we perform the following "header" code.....
$file_mime_type="application/octet-stream";
header("Content-Type: " . $file_mime_type);
header("Content-Disposition: attachment; filename=" . $selected_file);
What used to happen is that we would be prompted for a location to put the file we are downloading, and now it errors and indicates that TEST.PHP itself is being download.
Please help if you can!!