[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-developers] pdf with mod_deflate and IE
From: |
Sigurd Nes |
Subject: |
Re: [Phpgroupware-developers] pdf with mod_deflate and IE |
Date: |
Sun, 02 Jul 2006 20:24:13 +0200 |
User-agent: |
Thunderbird 1.5.0.4 (X11/20060613) |
The file is unique named as $fname = tempnam($dir.SEP,'PDF_').'.pdf';
I don't think /tmp is a good choice - while it is not (normally)
possible to reach from the redirected browser.
I can make it configurable if that is desirable.
have a look at phpgwapi/inc/class.pdf.inc.php (HEAD)
Regards
Sigurd
Alan Langford wrote:
> This should be configurable. I have seen hosting environments where
> ownerships and permissions are such that a script does not have write
> access to anything in their public html directories. In these cases, you
> have little choice but to use /tmp, and it is advisable to prefix the
> file names with something unique, such as the session ID.
>
> On 2006 07 02 13:24, Sigurd Nes wrote:
>> Maat wrote:
>>
>>> Sigurd Nes a écrit :
>>>
>>>
>>>> In order to have pdf-printout working with mod_deflate and IE - one has
>>>> to temporary save the pdf-data as a file - and redirect the browser to
>>>> this file.
>>>>
>>>> There is a function "print_pdf" in class.pdf.inc.php that checks the
>>>> browser - and if it is 'IE' - it will follow this procedure. Files
>>>> older
>>>> than one day will be deleted.
>>>>
>>>> In order to have this to work - it will need a directory which is
>>>> write-able to the webserver and within the webservers document-root.
>>>> I propose to have this directory within the pdf-section of the API:
>>>> "phpgroupware/phpgwapi/inc/pdf/pdf_files".
>>>>
>>>> Any objections to this?
>>>>
>>>>
>>>> Regards
>>>>
>>>> Sigurd
>>>>
>>>>
>>>>
>>> perhaps we could try to have something more generic so others app could
>>> benefit this writable zone ?
>>>
>>> example :
>>>
>>> phpgroupware/write
>>> phpgroupware/write/tmp
>>> phpgroupware/write/pdf_files
>>> phpgroupware/write/whatever
>>>
>>> what d'you think of it ?
>>>
>>>
>> Ok for me.
>>
>> Sigurd
>>