solved! RE: http download/open files..

2003-01-08 Thread João Borsoi Soares
You did help. I could find all I needed there. Thanks a lot.

Joao.


Em Ter, 2003-01-07 às 14:53, Daily, Shane, CTR escreveu:
> Just a guess but it looks as though you may have to write your own "headers"
> in PHP.
> Check http://www.php.net and search on headers. Lot's of good php info
> there.
> 
> Sorry I couldn't help more
> 
> 
> Shane
> 
> -Original Message-
> From: João Borsoi Soares [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 06, 2003 5:26 PM
> To: [EMAIL PROTECTED]
> Subject: RE: http download/open files..
> 
> 
> 
> Em Seg, 2003-01-06 às 19:02, Daily, Shane, CTR escreveu:
> > There is no way to FORCE a browser to download a file (security).  It will
> /
> > should always ask first if the mime type is unknown to itself.
> > 
> > Maybe if you could provide more details on what EXACTLY you're trying to
> > accomplish.
> 
> I want to make a link for my user to download a pdf file. But I don't
> want the browser to open it, just download it.
> 
> Take a look at the following link:
> 
> http://www.rau-tu.unicamp.br/nou-rau/sbu/document/list.php?tid=3
> 
> You can see the user may choose to open or download a pdf file. That's
> what I want to do. :-)
> 
> Thanks,
> Joao.
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: http download/open files..

2003-01-07 Thread Anthony E. Greene
On 06-Jan-2003/22:26 -0200, João Borsoi Soares <[EMAIL PROTECTED]> wrote:
>
>Em Seg, 2003-01-06 às 19:02, Daily, Shane, CTR escreveu:
>> There is no way to FORCE a browser to download a file (security).  It will /
>> should always ask first if the mime type is unknown to itself.
>> 
>> Maybe if you could provide more details on what EXACTLY you're trying to
>> accomplish.
>
>I want to make a link for my user to download a pdf file. But I don't
>want the browser to open it, just download it.
>
>Take a look at the following link:
>
>http://www.rau-tu.unicamp.br/nou-rau/sbu/document/list.php?tid=3
>
>You can see the user may choose to open or download a pdf file. That's
>what I want to do. :-)

They played with the MIME headers. The "View" Link uses application/pdf,
which will probably be viewed since most web surfers have a PDF viewer
installed.

The "Download" link uses application/octet-stream, which almost always
prompts a download since the browser cannot know what application to use
to open the file.

You will have to write PHP code to specify the MIME headers if you want to
do the same thing.


Tony
-- 
Anthony E. Greene 
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Messenger: TonyG05HomePage: 
Linux. The choice of a GNU generation 




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



RE: http download/open files..

2003-01-07 Thread Daily, Shane, CTR
Just a guess but it looks as though you may have to write your own "headers"
in PHP.
Check http://www.php.net and search on headers. Lot's of good php info
there.

Sorry I couldn't help more


Shane

-Original Message-
From: João Borsoi Soares [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 5:26 PM
To: [EMAIL PROTECTED]
Subject: RE: http download/open files..



Em Seg, 2003-01-06 às 19:02, Daily, Shane, CTR escreveu:
> There is no way to FORCE a browser to download a file (security).  It will
/
> should always ask first if the mime type is unknown to itself.
> 
> Maybe if you could provide more details on what EXACTLY you're trying to
> accomplish.

I want to make a link for my user to download a pdf file. But I don't
want the browser to open it, just download it.

Take a look at the following link:

http://www.rau-tu.unicamp.br/nou-rau/sbu/document/list.php?tid=3

You can see the user may choose to open or download a pdf file. That's
what I want to do. :-)

Thanks,
Joao.



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



RE: http download/open files..

2003-01-06 Thread João Borsoi Soares

Em Seg, 2003-01-06 às 19:02, Daily, Shane, CTR escreveu:
> There is no way to FORCE a browser to download a file (security).  It will /
> should always ask first if the mime type is unknown to itself.
> 
> Maybe if you could provide more details on what EXACTLY you're trying to
> accomplish.

I want to make a link for my user to download a pdf file. But I don't
want the browser to open it, just download it.

Take a look at the following link:

http://www.rau-tu.unicamp.br/nou-rau/sbu/document/list.php?tid=3

You can see the user may choose to open or download a pdf file. That's
what I want to do. :-)

Thanks,
Joao.



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: http download/open files..

2003-01-06 Thread Dave Sherman
On Mon, 2003-01-06 at 15:18, Vidiot wrote:
> >OK. But, I want to make a link where the mime type is not considered, to
> >force download. Do you know how to do it?

You can't. The browser will bring up a Save As dialog if it does not
recognize the MIME type, does not have a registered plugin, and can't
figure out the file's format by itself (i.e., it may try text by
default, if no MIME type is specified).

Those sites where the download starts "automatically" are just doing
http redirection, and linking directly to the file to be downloaded.
Your browser config is the determining factor of whether it will
download the file or try to load it directly or with a plugin. The good
news is, most of the time a default-configured browser will correctly
download a file it does not know about via MIME type.

-- 
Dave Sherman
MCSE, MCSA, CCNA
"If we wanted you to understand it, we wouldn't call it code."



signature.asc
Description: This is a digitally signed message part


Re: http download/open files..

2003-01-06 Thread Vidiot
>OK. But, I want to make a link where the mime type is not considered, to
>force download. Do you know how to do it?

As far as I know, you can't.

MB
-- 
e-mail: [EMAIL PROTECTED]  /~\ The ASCII
   \ / Ribbon Campaign
X  Against
Visit - URL: http://vidiot.com// \ HTML Email



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



RE: http download/open files..

2003-01-06 Thread Daily, Shane, CTR
There is no way to FORCE a browser to download a file (security).  It will /
should always ask first if the mime type is unknown to itself.

Maybe if you could provide more details on what EXACTLY you're trying to
accomplish.


Shane

-Original Message-
From: João Borsoi Soares [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 1:16 PM
To: [EMAIL PROTECTED]
Subject: RE: http download/open files..


OK. But, I want to make a link where the mime type is not considered, to
force download. Do you know how to do it?


Em Seg, 2003-01-06 às 17:29, Daily, Shane, CTR escreveu:
> Whether or not the file is opened or downloaded depends on the browser
MIME
> settings. For example... If I have MS Office installed on my machine (and
> I'm browsing with Internet Exploder) and I click on a Word document from
> your web site, chances are the word document will open in the browser. I
can
> bypass this by using the right-click and selecting "save target as". I
also
> believe you can use the shift-key while clicking the link with a Mozilla
> based browser. The browser will typically download a file if it isn't
> "aware" of the type of file you click. You may want to read more about
MIME
> Types.
> 
> Hope that helps.
> 
> 
> Shane
> 
> -Original Message-
> From: João Borsoi Soares [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 06, 2003 12:12 PM
> To: [EMAIL PROTECTED]
> Subject: http download/open files..
> 
> 
> Hello,
> 
> Sorry if it's out of topic, but I don't know where I can find an
> answere. I'm developing a site in PHP and I need to make links to open
> AND download documents. Does anyone knows how can I tell the browser
> whether to download or open the files? Or maybe somelinks where I can
> find it.
> 
> Thanks,
> Joao. 
> 
> 
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



RE: http download/open files..

2003-01-06 Thread João Borsoi Soares
OK. But, I want to make a link where the mime type is not considered, to
force download. Do you know how to do it?


Em Seg, 2003-01-06 às 17:29, Daily, Shane, CTR escreveu:
> Whether or not the file is opened or downloaded depends on the browser MIME
> settings. For example... If I have MS Office installed on my machine (and
> I'm browsing with Internet Exploder) and I click on a Word document from
> your web site, chances are the word document will open in the browser. I can
> bypass this by using the right-click and selecting "save target as". I also
> believe you can use the shift-key while clicking the link with a Mozilla
> based browser. The browser will typically download a file if it isn't
> "aware" of the type of file you click. You may want to read more about MIME
> Types.
> 
> Hope that helps.
> 
> 
> Shane
> 
> -Original Message-
> From: João Borsoi Soares [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 06, 2003 12:12 PM
> To: [EMAIL PROTECTED]
> Subject: http download/open files..
> 
> 
> Hello,
> 
> Sorry if it's out of topic, but I don't know where I can find an
> answere. I'm developing a site in PHP and I need to make links to open
> AND download documents. Does anyone knows how can I tell the browser
> whether to download or open the files? Or maybe somelinks where I can
> find it.
> 
> Thanks,
> Joao. 
> 
> 
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



RE: http download/open files..

2003-01-06 Thread Daily, Shane, CTR
Whether or not the file is opened or downloaded depends on the browser MIME
settings. For example... If I have MS Office installed on my machine (and
I'm browsing with Internet Exploder) and I click on a Word document from
your web site, chances are the word document will open in the browser. I can
bypass this by using the right-click and selecting "save target as". I also
believe you can use the shift-key while clicking the link with a Mozilla
based browser. The browser will typically download a file if it isn't
"aware" of the type of file you click. You may want to read more about MIME
Types.

Hope that helps.


Shane

-Original Message-
From: João Borsoi Soares [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 12:12 PM
To: [EMAIL PROTECTED]
Subject: http download/open files..


Hello,

Sorry if it's out of topic, but I don't know where I can find an
answere. I'm developing a site in PHP and I need to make links to open
AND download documents. Does anyone knows how can I tell the browser
whether to download or open the files? Or maybe somelinks where I can
find it.

Thanks,
Joao. 





-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list