<?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.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php