GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   ssi? (https://gfy.com/showthread.php?t=60693)

Dirty F 05-15-2002 03:01 PM

ssi?
 
I have an index.htm page and on that index page i need to include another page.. This other page is a .cgi page. Can i include this in the index.htm page? If so, how? With SSI? PHP?

Thanks

Mr.Fiction 05-15-2002 03:04 PM

Yes, but you need to use an .htaccess to tell your server to parse the .htm pages for PHP or SSI.

Mr.Fiction 05-15-2002 03:05 PM

Read this:
http://www.webbuilder101.com/tipsand...htmlforssi.asp

Dirty F 05-15-2002 03:07 PM

Thanks.
Can you give a sample of what command to use once i got that htacces thing setup?

Mr.Fiction 05-15-2002 03:19 PM

General stuff:
http://www.bignosebird.com/ssi.shtml

Specific to your question:
http://www.bignosebird.com/sdocs/execs.shtml

This is the code to call the script:
< !--#include virtual="/cgi-bin/calprog.cgi" -->

(remove the space before the exclamation point)

Dirty F 05-15-2002 04:11 PM

Cool, thanks alot!

Nbritte 05-15-2002 05:00 PM

Actually that virtual one may not work this one should always work

&lt!--#exec cgi="/cgi-bin/cgiprogram.cgi"--&gt
but if it doesnt then add this to your .htaccess file
AddHandler server-parsed .html
AddHandler server-parsed .htm

Brian


All times are GMT -7. The time now is 03:56 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123