[PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Alex James
Beginner to PHP so I guess this could be a really simple answer. I have a page linking to a ms word doc however the doc doesn't open up in word within the sectioned part of the browser but displays a load of gobble e.g.. ÐÏࡱá  þ  L N  þÿÿÿK

Re: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread John Nichel
Alex James wrote: Beginner to PHP so I guess this could be a really simple answer. I have a page linking to a ms word doc however the doc doesn't open up in word within the sectioned part of the browser but displays a load of gobble e.g..   L N  K7

RE: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Gregory Kornblum
You probably want to add the mime type with 'header(Content-type: application/x-ms-word);'. Regards. -Gregory -Original Message- From: Alex James [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 7:57 AM To: [EMAIL PROTECTED] Subject: [PHP] [PHP-GENERAL] Serving docs from PHP

RE: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Alex James
John Nichel wrote: Your php page has a link to the word document like this a href=word.docMy Document/a? Show some code. Sorry Here is the link in menu6.php h3a href=index.php?m=6PK PATTERNS/a/h3 a href=index.php?m=6c=pkPatterns/MicroModel.docMicro models/a a

Re: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Marek Kilimajer
Alex James wrote: ?php $c = $_GET[c]; if ($c != ) { include($c); } else { include(content1.php); } ? The code is very unsafe, you include and

Re: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread John Nichel
Alex James wrote: John Nichel wrote: Your php page has a link to the word document like this a href=word.docMy Document/a? Show some code. Sorry Here is the link in menu6.php h3a href=index.php?m=6PK PATTERNS/a/h3 a href=index.php?m=6c=pkPatterns/MicroModel.docMicro models/a

RE: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Alex James
John Nichel wrote: On the page that you're trying to serve the Micro$oft Document (index.php), you're going to have to include the content type in the header, something like... header ( Content-type: application/msword ); See here... http://us4.php.net/manual/en/function.header.php

Re: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread John Nichel
Alex James wrote: John Nichel wrote: On the page that you're trying to serve the Micro$oft Document (index.php), you're going to have to include the content type in the header, something like... header ( Content-type: application/msword ); See here...

RE: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Alex James
Okay, if you're going to include a MSWord document in a normal HTML file, how do you do thatwhat's your code to do it? Ah...good point. Thought It would work like a frame. But now thinking about it I'm trying to embed a word doc in the html and guess because I not using some object or

Re: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread John Nichel
Alex James wrote: Okay, if you're going to include a MSWord document in a normal HTML file, how do you do thatwhat's your code to do it? Ah...good point. Thought It would work like a frame. But now thinking about it I'm trying to embed a word doc in the html and guess because I not using