Re: Serving docs from PHP

From: Date: Tue, 28 Oct 2003 13:59:25 +0000
Subject: Re: Serving docs from PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167871@lists.php.net to get a copy of this message
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

« previous php.general (#167871) next »