Re: Header function

From: Date: Sat, 27 Feb 2010 09:44:35 +0000
Subject: Re: Header function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-302422@lists.php.net to get a copy of this message
On 27 February 2010 04:32, Nick allan <nallan@wdev.net> wrote: > Hi all > > Has anyone got any ideas why the following isn't giving me correct filename > in the ie save dialogue > > header('Content-Type: application/msword'); > >  header('Content-Disposition: attachment; filename="PurchaseReq.doc"'); > > > > I get the save dialogue, but with preq.doc instead of PurchaseReq.doc > > Preq.php is the calling php file. It has worked before so I'm not sure what > I've changed to have it stop working. > > > > > > Thanks in advance for any suggestions. > > > > Regards Nick > > > > What happens if you drop the quotes around the filename? -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling

« previous php.general (#302422) next »