For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > June 2004 > Re: problème avec HTTP_DOWNLOAD









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: problème avec HTTP_DOWNLOAD
Justin Patrin

2004-06-09, 8:57 pm

Loulou wrote:

> Hi,
>
> I've a problem with HTTP_DOWNLOAD classe, I would like open a word document
> into internet explorer but the file don't open and the system ask me if I
> want download it, someone could help me??
> here's the code I use !
>
> $dl = &new HTTP_Download();
>
> $dl->setFile('test.doc');
>
>
> $dl->setContentDisposition("HTTP_DOWNLOAD_INLINE",'test.doc');
>
> $dl->setContentType('application/msword');
>
> $dl->send();


This is probably because IE won't open work documents inside it.
Download the file and open it regular. ;-)

--
paperCrane <Justin Patrin>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com