php-windows | 2003112
Date: 11/25/03
- Next message: Jarl E. Gjessing: "[PHP-WIN] Re: Error opening files sent via PHP script with IE on XP"
- Previous message: Robin Stoker: "RE: [PHP-WIN] Online Polls"
- Next in thread: Jarl E. Gjessing: "[PHP-WIN] Re: Error opening files sent via PHP script with IE on XP"
- Reply: Jarl E. Gjessing: "[PHP-WIN] Re: Error opening files sent via PHP script with IE on XP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have made a website where registered users can download
Sends it to the browser in this way:
Where $ROOT could be:
The problem is, that when clicking the link, Word starts as expected, but
Any help would be appreciated, thanks
documents from a protected area.
Only problem is, that users using windows XP and internet explorer cannot
use the Open, when they klik the link.
I have tried various browsers under Linux and Windows 2000, they dont have
any problems.
I pass a URL like:
http://
To the server. The PHP script then tages the file argument, and fetches the
file from the server in a location like:
/var/lib/webcol/<filepath>
header("Content-Type: ".$mime);
header("Content-Disposition: attachment; filename=\"".$filename."\"");
header("Content-Description: File Downloaded from webcol");
header("Content-Length: ".filesize($ROOT.$_GET['file']));
$fd=fopen($ROOT.$_GET['file'], "r");
fpassthru($fd);
fclose($fd);
return;
/var/lib/webcol/<filepath>
mime is determined from a mimetype template we've made.
An example would in this case be:
applications/msword
then reports, that it cannot find the temporary file that Internet Explorer
tells Word that it has been stored as.
And this is true. It does not exist
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

