Forum Moderators: coopster

Message Too Old, No Replies

Issue with PHP/SSI scripting

I am sure someone knows how to fix this ;)

         

Roel

11:53 pm on Jul 24, 2004 (gmt 0)

10+ Year Member



Hi

This is my .htaccess:

--------------------------------------------------------
AddHandler server-parsed .html
Options Indexes FollowSymLinks Includes

AddType application/x-httpd-php htm

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 208.xx.x.
deny from 208.xx.xx.xx
deny from 208.xx.xx.xx
deny from 67.xx.xx.
deny from 67.xx.xx.xx
--------------------------------------------------------

I have two questions:

1) I want to use both SSI and PHP code on .HTML pages - but when I change the following line:

AddType application/x-httpd-php htm

in to

AddType application/x-httpd-php html

Then when I open my webpage it gives me a download option instead of just showing the HTML page.

Does anyone know how can I accomplish this?

PS. When I just use SSI on HTML pages and PHP on HTM pages it works perfectly (as you would expect from the .htaccess above)

2) If I use "deny from 208.84.120." does this mean "deny from 208.84.120.x" (ie. all the addresses in 208.84.120?)

Any help is appreciated ;)

Thanks
Roel

[edited by: jatar_k at 3:40 pm (utc) on July 26, 2004]
[edit reason] generalized ips [/edit]

Philosopher

12:18 am on Jul 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yep...I ran into the same problem a while back. I may be wrong, but I don't think you can. You are basically telling the server that an application is both a php application and a cgi application which I am guessing is where the problem lies.