Advertisement

12.27.2006 at 08:26AM PST, ID: 22104174
[x]
Attachment Details

Including excecutable php file in html SSI

Asked by admash in Miscellaneous Web Development, Apache Web Server, Linux Administration

Tags: php, ssi, html, include

I have moved one of my websites from a shared hosting account to a dedicated server that hosts all of my projects. I usually code in php, but this particular site is 98% .html files. The issue is that on the old shared hosting account, I was able to SSI .php files inside .html files, i.e. in index.html I could have the line:

<!--#include file="menu.php" -->

And the php would execute and display as needed. However, since moving the site, I can't get it to work. In the http.conf virtual host section, I have added (which was the same as the .htaccess file from the old shared account):

Options +Indexes FollowSymLinks
Options +Includes
AddType text/html .html
AddHandler server-parsed .html
AddHandler server-parsed .php

Now this allows the .php files to be seen, but it shows all of the code! How do I make this work?

I am using Apache version 2.0.53Start Free Trial
 
Loading Advertisement...
 
[+][-]12.27.2006 at 08:28AM PST, ID: 18202960

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.27.2006 at 08:32AM PST, ID: 18202977

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.27.2006 at 09:27AM PST, ID: 18203368

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.27.2006 at 09:35AM PST, ID: 18203428

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.27.2006 at 09:40AM PST, ID: 18203455

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.27.2006 at 09:56AM PST, ID: 18203565

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.27.2006 at 10:24AM PST, ID: 18203715

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.27.2006 at 10:41AM PST, ID: 18203829

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Miscellaneous Web Development, Apache Web Server, Linux Administration
Tags: php, ssi, html, include
Sign Up Now!
Solution Provided By: paradoxengine
Participating Experts: 4
Solution Grade: B
 
 
[+][-]12.27.2006 at 11:18AM PST, ID: 18204075

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.27.2006 at 03:36PM PST, ID: 18205480

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.28.2006 at 12:08AM PST, ID: 18206835

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.28.2006 at 09:05AM PST, ID: 18209031

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.28.2006 at 09:09AM PST, ID: 18209059

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32