Upgraded to 1.5.4, PHP includes no longer working
Posted: 21. September 2006 21:01
I just upgraded to 1.5.4 from 1.3-something and am having some problems.
In the old release I used this code so I could use c:/webprojects/ as my base directory for all my websites in progress:
Alias /webprojects/ "C:/webprojects/"
<Directory "C:/webprojects">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
This worked fine. But now I'm using this code:
Alias /webprojects/ "C:/webprojects/"
<Directory "C:/webprojects">
Options Indexes FollowSymLinks +Includes ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
And this works fine, pulls the files up with no problems *but* the PHP includes no longer work - not in .php files or in .html files, which I'd like to be able to use and parse the php.
I've added the .html and .htm filetypes to AddType application/x-httpd-php in xampp/apache/conf/extra/ as I found in the forum. I also tried moving one of my .php files into xampp/htdocs/ and the includes in my file are still not working. Here's what my html code looks like (and these work fine on my remote Unix host running Apache 1.5-something, as well as in the old release of Xampp):
<div id="header">
<?php include("phpincludes/header.php"); ?>
</div>
<div id="topmenu">
<?php include("phpincludes/navigation.php"); ?>
</div>
My questions are:
1) How do I get the includes working within PHP files?
2) Once that's working, how do I get HTML files to parse PHP?
Thanks!
In the old release I used this code so I could use c:/webprojects/ as my base directory for all my websites in progress:
Alias /webprojects/ "C:/webprojects/"
<Directory "C:/webprojects">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
This worked fine. But now I'm using this code:
Alias /webprojects/ "C:/webprojects/"
<Directory "C:/webprojects">
Options Indexes FollowSymLinks +Includes ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
And this works fine, pulls the files up with no problems *but* the PHP includes no longer work - not in .php files or in .html files, which I'd like to be able to use and parse the php.
I've added the .html and .htm filetypes to AddType application/x-httpd-php in xampp/apache/conf/extra/ as I found in the forum. I also tried moving one of my .php files into xampp/htdocs/ and the includes in my file are still not working. Here's what my html code looks like (and these work fine on my remote Unix host running Apache 1.5-something, as well as in the old release of Xampp):
<div id="header">
<?php include("phpincludes/header.php"); ?>
</div>
<div id="topmenu">
<?php include("phpincludes/navigation.php"); ?>
</div>
My questions are:
1) How do I get the includes working within PHP files?
2) Once that's working, how do I get HTML files to parse PHP?
Thanks!