Re: Bypassing the 'open or save' dialog when outputting a docum ent

From: Date: Fri, 19 Sep 2003 14:38:47 +0000
Subject: Re: Bypassing the 'open or save' dialog when outputting a docum ent
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-163141@lists.php.net to get a copy of this message
* Thus wrote FLOWERS, Gareth (Gareth.FLOWERS@eur.crowncork.com): > Hi, > > I'v created several pages for my company website that output php to MS Word > and MS Excel. These work fine fine but as soon as you load the page you get > a dialog that asks whether to open or save the document. We always select > 'open' as we want view the contents in Excel/Word applications. > Is there a way to stop this dialog box appearing everytime - can I just open > the document without it appearing. I know theres a checkbox at the bottom of > the dialog you can unitck but I only want this setting to apply to certain > pages. Nope, unfortunately you don't have that power, and for good reasons. It all depends on the client's file (mime/type) associations on their local computer. If this were the case malicious people could force visitors to launch an .eml file (or something containing a virus) without their consent. Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#163141) next »