Forum Moderators: coopster & phranque

Message Too Old, No Replies

php include

template project shows blank page

         

russgri

4:47 am on Apr 9, 2003 (gmt 0)

10+ Year Member



I successfully linked up my template usine php include function.

The result is a blank page...
The source code reveals that all the html elements including a couple of words for body content.

my .htaccess contains...
<Files ~ "\.inc$">
Order allow,deny
Deny from all
</Files>
AddType application/x-httpd-php .php .php3 .phtml .html

first using index.php ...
next using index.html ...
both are identical files with identical results.

Birdman

12:03 pm on Apr 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



russgri,

To include() [php.net] files with PHP [php.net] doesn't require .htaccess alteration. Well, if you want to name your pages with .html extensions, keep the last "AddType" line.

<?php
include( [php.net]"file.php");
?>
Birdman