Re: include txt in html

From: Date: Wed, 15 Mar 2006 03:52:09 +0000
Subject: Re: include txt in html
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-26753@lists.php.net to get a copy of this message
<?php include("Registration.txt") ?> If you're loading PHP as a module under Apache and you have PHP in your include file which you want to be processed, you also need to make sure it's added to your list of file types that the engine processes PHP code in. In your httpd.conf file you'd specify something like: AddType application/x-httpd-php .php .txt This would process PHP code in files with both .php and .txt extensions. Cheers. Armando Alf Stockton wrote:
From what I have read on the web I am given to understand that I can include text files in a html document by issuing the following in the html file <!--#include file="Registration.txt"--> This however does not work for me. My 1st thought was that I had not allowed for SSIs in my httpd.conf but my httpd.conf Options is as follows Options Indexes Includes FollowSymLinks MultiViews ExecCGI So if someone can share with me how I got this wrong I would be grateful.


« previous php.windows (#26753) next »