Re: PEAR HTTP_DOWLOAD problem
| From: | Emmanuel | Date: | Thu, 01 Apr 2004 09:02:05 +0000 |
| Subject: | Re: PEAR HTTP_DOWLOAD problem | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-26925@lists.php.net to get a copy of this message | ||
I have a new problem!
The page who call my script is based in a Iframe.
My link on this iframe call my script dowload.php where i have coded the
dowload object with HTTP_download.
This link resembles to "./dowload.php?filename=..."
After the click on this link, my navigation for reloading the content of the
iframe not works.
I tried with _blank attribute on the link but it open a blank page (can I
close it without the use of javascript?).
How can I do?
Does the downloading process alter the header of my pages?
Thank's
"Emmanuel" <m.rochefort@sig-image.fr> a écrit dans le message de news:
20040401072323.23135.qmail@pb1.pair.com...
> Hello every body!
> I'm a new user of PEAR.
> I want to permit some users to dowload hidden files (in directories
> protected by .htaccess.
> Here the code I use:
> $dl = &new HTTP_Download();
> $dl->setFile('./AG001/'.$_GET['fichier']);
> $dl->setContentDisposition(HTTP_DOWNLOAD_ATTACHMENT, $_GET['fichier']);
> $dl->guessContentType();
> $dl->send();
>
> The dowload is successfull, but the file I get is modified and not
readable
> (the dowload create 2 octets in the start off the file)
>
> Can you help me please?
>
> Thank's