Alex James wrote:
John Nichel wrote:


Your php page has a link to the word document like this....
<a href="word.doc">My Document</a>?


Show some code.

Sorry


Here is the link in menu6.php

<h3><a href="index.php?m=6">PK PATTERNS</a></h3>
        <a href="index.php?m=6&c=pkPatterns/MicroModel.doc">Micro models</a>
        <a href="index.php?m=6&c=pkPatterns/test.html">Test</a>

and getting called in here in index.php


<?php


$c = $_GET["c"];

                           if ($c != "") {
                             include($c);
                          } else {
                             include("content1.php");
                      }

?>

Thanks

Alex James

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

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to