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 and guess because I not using some o

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 and guess because I not using some or activeX cont

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... http://us4.php.net/manual/en/function.h

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.p

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 My Document? Show some code. Sorry Here is the link in menu6.php PK PATTERNS Micro models Test and getting called in here in index.php $c = $_GET["c"];

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

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

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 > My Document? > Show some code. Sorry Here is the link in menu6.php PK PATTERNS Micro models Test and getting called in here in index.php Thanks Alex James -- PHP General Mailing List (http

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] S

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  þÿÿÿ

[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 ÿÿÿ