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
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
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
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
Alex James wrote:
?php
$c = $_GET[c];
if ($c != ) {
include($c);
} else {
include(content1.php);
}
?
The code is very unsafe, you include and
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
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
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...
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
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
10 matches
Mail list logo