NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP headers and Mac Machine Downloads

LY heli_travel at yahoo.com
Wed May 7 14:38:39 EDT 2003


That is:

Explorer Version 5.2.1 (4717) for Mac
Encryption:128 bit
User Agent: Mozillor/4.0 (compatible: MSIE 5.21; Mac_PowerPc)

is it ok?

thanks!


--- "Malcolm, Gary" <gmalcolm at professionalcredit.com> wrote:
> what browser (name and version) are you using... please don't
> say NS4 :) 
> 
> > -----Original Message-----
> > From: LY [mailto:heli_travel at yahoo.com]
> > Sent: Wednesday, 07 May, 2003 10:59 AM
> > To: NYPHP Talk
> > Subject: RE: [nycphp-talk] PHP headers and Mac Machine
> Downloads
> > 
> > 
> > Hi Gary,
> > 
> > I still can't open it on the Mac. I can open this in windows
> > with no problem. It still gives me a url in eMac, it doesn't
> > give me the "downloaded.csv".
> > Please advise!
> > 
> > Thanks!
> > 
> > --- "Malcolm, Gary" <gmalcolm at professionalcredit.com> wrote:
> > > this worked for me...
> > > 
> > >     header("Pragma: ");
> > >     header("Cache-Control: ");
> > >     header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> > >     header("Last-Modified: " . gmdate("D, d M Y H:i:s") .
> "
> > > GMT");
> > >     header("Cache-Control: no-store, no-cache,
> > > must-revalidate");
> > >     header("Cache-Control: post-check=0, pre-check=0",
> false);
> > >     header("Content-type:
> > > application/csv-tab-delimited-table;");
> > >     header("Content-Disposition: attachment;
> > > filename=downloaded.csv");
> > > 
> > > 
> > > > -----Original Message-----
> > > > From: LY [mailto:heli_travel at yahoo.com]
> > > > Sent: Wednesday, 07 May, 2003 9:03 AM
> > > > To: NYPHP Talk
> > > > Subject: [nycphp-talk] PHP headers and Mac Machine
> Downloads
> > > > 
> > > > 
> > > > Hi Folks,
> > > > 
> > > > I got a very interesting question. When I try to use PHP
> to
> > > > produce a dowload file, I usually use header, like this:
> > > > 
> > > > 
> > > > header("Content-Type: application/vnd.ms-excel;
> > > > charset=$dest_charset");
> > > > print(" " . $content); 
> > > > 
> > > > I print the very long string out with a specfic header
> > > > information.
> > > > 
> > > > This code works fine on windows, linux machines, but it
> > > doesn't
> > > > work for Mac. Mac will download an url instead of a
> excel
> > > file.
> > > > the above code, will give me aa abc.xls file on windows
> and
> > > > linux, but will give me an url, like
> > > > this"http://www.abc.com/app.shtml?nam=a&execid=1212" on
> Mac,
> > > and
> > > > I can't open it!
> > > > 
> > > > This things bother me a lot, Could some one help me out:
> > > > 
> > > > 1)Do I need to configure browser on that Mac to plug in
> some
> > > > applications?
> > > > 
> > > > 2)How to change the header to let Mac to download an
> excel
> > > file
> > > > with a specified name and extension instaead of a
> > > > url(http://www.abc.com/app.shtml?nam=a&execid=1212)
> > > > 
> > > > Thanks for your help!
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > The New Yahoo! Search - Faster. Easier. Bingo.
> > > > http://search.yahoo.com
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo.
> > http://search.yahoo.com
> > 
> > 
> > 
> > 
> > 
> 
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com



More information about the talk mailing list