Date: 08/26/00
- Next message: Bernd Neumayr: "Re: [phplib] registered vars broken in PHP4"
- Previous message: Mike Green: "[phplib] Duplicate entry for insert into sessions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I'm using PHPlib V7.2b with sessions in cookie mode. It's all working fine
except the following: I tried to code a download script which allows
auth'ed users to download a file like this:
<?php
page_open(...);
[...some DB-Querys...]
$realfile["size"] = <email protected>($realfile["pathname"]);
header("Content-type: ".$realfile["mimetype"]);
header("Content-length: ".$realfile["size"]);
header("Content-description: File_for_you");
header("Content-disposition: inline; filename=\"".$realfile["name"]."\"");
<email protected>($realfile["pathname"]);
page_close();
?>
It's working correctly, if I don't call the page_open/page_close-functions.
It's also working, if the file is a gif/jpg using the page_*-funcs. But
it's not working using the page_*-stuff with other files. Looks like the
Browsers don't like cookies beeing set by a zip/doc/xls/... file ?!
Do you have any workarounds for this case?
TIA,
Bernhard
-- Bernhard OstheimerE-Mail: Bernhard.Ostheimer <email protected>
--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Bernd Neumayr: "Re: [phplib] registered vars broken in PHP4"
- Previous message: Mike Green: "[phplib] Duplicate entry for insert into sessions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

