Forum Moderators: coopster
I have a site that is all .html extensions and uses PHP. This is the line I have in .htaccess:
AddType application/x-httpd-php .php .php3 .phtml .html
It's pretty simple to include at this point by using:
<?php
include("file.php");
?>
I decided to just switch to straight .php on my best site and it went over without a hitch. Of course, I set up redirects when I did it.
I assume there is an ulterior motive such as using more php than just includes to make it more than a make work project.
Marcia in php, I had to rub my eyes and pinch myself, she's coming over to the dark side ;)
[php.net...]
include 'vars.php';
One of those silly things, I have never used parens and when I work on someone's code I usually remove them. A pet peeve. ;)