Forum Moderators: coopster & phranque

Message Too Old, No Replies

How can i enable SSI in .htaccess?

         

jcmiras

9:08 am on May 30, 2005 (gmt 0)

10+ Year Member



Is it possible to enable SSI in .htaccess?

It seems that SSI is not enabled in my server because it does not execute .cgi code in my html pages. I dont have access to my server.

abbeyvet

9:32 am on May 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



AddType text/html .html
AddHandler server-parsed .html

jcmiras

9:34 am on May 30, 2005 (gmt 0)

10+ Year Member



Let me re-state my problem.
I want the server to execute this code:
<!--#exec cgi="/cgi-bin/spydertrax.cgi" -->

in my .htm file. This .htm file is actually a php file that was "mode re-writed" to .htm file.

jcmiras

9:37 am on May 30, 2005 (gmt 0)

10+ Year Member



Thanks, but your code doesnt work.

Span

9:49 am on May 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



On one server, I have to include CGIs in PHP like this:

<?php virtual ("/cgi-bin/program.cgi");?>

On another server, where the above method doesn't work, I had to do it like this:

<?php putenv ("REQUEST_METHOD=GET");
passthru ("/cgi-bin/program.cgi");?>

Span

2:49 pm on May 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry if I wasn't clear enough in my above post. On both servers I'm including those CGIs in PHP parsed .html pages.

I thought that is what you meant by "a php file that was "mode re-writed" to .htm file".