Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2008-07-30, 05:13 PM   #1
Xallow
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
 
Join Date: May 2006
Location: Denmark
Posts: 447
Send a message via ICQ to Xallow
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
__________________
Porn Safe Submit Free Sites
Porn Party Porn Submit Free Sites
Xallow is offline   Reply With Quote
Old 2008-07-30, 05:52 PM   #2
cd34
a.k.a. Sparky
 
cd34's Avatar
 
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
If you are running apache1, I believe the above should work. If your host is running fastcgi, it might not react the same way and then you need to get them involved.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2008-07-30, 06:58 PM   #3
Xallow
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
 
Join Date: May 2006
Location: Denmark
Posts: 447
Send a message via ICQ to Xallow
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 I guess I will have to talk to the host about it
__________________
Porn Safe Submit Free Sites
Porn Party Porn Submit Free Sites
Xallow is offline   Reply With Quote
Old 2008-07-30, 07:11 PM   #4
cd34
a.k.a. Sparky
 
cd34's Avatar
 
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]
I'm assuming you have tons of links pointed at index.shtml and can't use a new page, but, the above will probably fix it without having to involve your host -- and if you are in a virtual environment, they may not be willing to enable the permissions to allow those directives, or, its possible that you're running php under fastcgi and the directive isn't quite doing what you need.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2008-07-31, 03:49 AM   #5
Xallow
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
 
Join Date: May 2006
Location: Denmark
Posts: 447
Send a message via ICQ to Xallow
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
__________________
Porn Safe Submit Free Sites
Porn Party Porn Submit Free Sites
Xallow is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:33 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc