|
|
|
|
|
|
![]() |
#1 |
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
|
Parse php in .shtml file
As the title states, I need to parse php in my index.shtml file.
I have tried the following in my .htaccess: AddType x-mapp-php4 .html .htm .shtml removeHandler server-parsed shtml AddType application/x-httpd-php3 .shtml RemoveHandler .shtml AddType application/x-httpd-php .shtml AddType application/x-httpd-php .shtml With all of them the result is that when I go to the url, I am asked if I want to download the file. I am at a loss here ![]() |
![]() |
![]() |
![]() |
#2 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
Do you need to parse both SSI and php in the page? If so, you would require apache2 which can do that with the addition of a handler. I don't quite remember which order pages are parsed in, but, I believe you set it to parse .php first, then, AddOutputFilter INCLUDES
If you are running apache2, and want to parse .shtml pages for php only, the following will do that: Code:
RemoveHandler .shtml AddType application/x-httpd-php .shtml
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#3 |
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
|
A traffic trade script needs the page to be .shtml I have unfortunately tried the
RemoveHandler .shtml AddType application/x-httpd-php .shtml and it didn't work, it simply asked if I wanted to download the file ![]() |
![]() |
![]() |
![]() |
#4 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
does the page load if you run it as index.php?
if so, remove index.shtml and put the following in your .htaccess Code:
RewriteEngine on RewriteRule ^index.shtml$ index.php [L,QSA]
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#5 |
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
|
It is actually a new site I am creating so I don't have anything pointed at anything yet. I will give it a try as soon as I get home from my extremely tedious day job
![]() |
![]() |
![]() |
![]() |
|
|