inline php with coolstack?

How do I configure coolstack to handle inline php in html pages? It handles .php pages fine, but if I have a html page that I just want to stick a <?php ...... ?> function in, that part gets ignored. These pages are handled on the server provided by my hosting service, so I just want them to be handled the same way on my Solaris 10 coolstack server at home. Other than that, the coolstack is cool :-)

Jay

[425 byte] By [jayseaman99a] at [2007-11-27 4:47:38]
# 1

Make sure .html is added to the following line in your httpd.conf file:

AddType application/x-httpd-php .php .html

Otherwise you can use an .htaccess file with the following:

AddHandler application/x-httpd-php .html

Since you say this isn't your server you may be able to add neither of the above, and will be S.O.L.

Cheers, D

NivenDa at 2007-7-12 10:00:25 > top of Java-index,Open Source Technologies,OpenSPARC...
# 2
Actually, my previous note should have added the following, which when added to your .htaccess file, will do what you want:AddType application/x-httpd-php .html .php .htmCheers, D
NivenDa at 2007-7-12 10:00:25 > top of Java-index,Open Source Technologies,OpenSPARC...
# 3

I must truely be missing something in my naivete with configuring apache. I tried adding the AddType lines to both the httpd.conf file and the .htaccess file and restarting the server. Still no luck. I have a simple little page that has some html & some php

Hello world

<?php

echo 'hello from php';

?>

but only prints the Hello world part. You wouldn't think this was rocket science, but I'm baffled :-) If I create a page as a page.php, it works fine.

jayseamana at 2007-7-12 10:00:25 > top of Java-index,Open Source Technologies,OpenSPARC...
# 4
Have you restarted Apache after making that change?D
NivenDa at 2007-7-12 10:00:25 > top of Java-index,Open Source Technologies,OpenSPARC...
# 5
yes...
jayseamana at 2007-7-12 10:00:25 > top of Java-index,Open Source Technologies,OpenSPARC...
# 6

I have success:) Feeling foolish, but successful. Thanks for the hint about .htaccess - but it was being ignored by the default AllowOverride None. A little digging into what that meant, and I'm on my way :)

As it turns out I do have access to the httpd.conf file so adding the Add Handler directive was sufficient - I was wasting too much energy on the Output Filter.

Anyway - thanks !

Jay

jayseamana at 2007-7-12 10:00:25 > top of Java-index,Open Source Technologies,OpenSPARC...