[PHP] opening msword files outside the browser

2003-06-15 Thread Maris Kalnins
Hi! I am using: ?php header('Content-Type: application/msword'); header('Content-Disposition: attachment; filename=test.doc'); readfile(test.doc); ? What changes should be made to this code to skip the dialog box asking Open, Save, Cancel and go right to the opening the MSWord file outside the

Re: [PHP] opening msword files outside the browser

2003-06-15 Thread Adrian
you could try header('Content-Disposition: inline; filename=test.doc'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] opening msword files outside the browser

2003-06-15 Thread Maris Kalnins
Adrian, thanks for the clue! .. but this is opening word document inside the web browser which is not acceptable in my case :( Adrian [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] you could try header('Content-Disposition: inline; filename=test.doc'); -- PHP General Mailing

Re: [PHP] opening msword files outside the browser

2003-06-15 Thread Adrian
oops, i thougt you wanted it opening in the browser. i don't think there is a way to open it directly outside the browser, because if this would be possible someone could do so with a virus .exe, too. .. but this is opening word document inside the web browser which is not acceptable in my case

Re: [PHP] opening msword files outside the browser

2003-06-15 Thread Maris Kalnins
yeah, i guess you're right! then there's no such possibility :( Adrian [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] oops, i thougt you wanted it opening in the browser. i don't think there is a way to open it directly outside the browser, because if this would be possible someone

Re: [PHP] opening msword files outside the browser

2003-06-15 Thread DvDmanDT
You could go for like javascript maybe.. but nah, that seems kinda impossible... But maybe not... VBS... Maris Kalnins [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] yeah, i guess you're right! then there's no such possibility :( Adrian [EMAIL PROTECTED] wrote in message