rtmd Posted November 21, 2007 Share Posted November 21, 2007 Apache-CGI-SSIHi all,I created a html layout named mylayout in wich I include another file:<!--#include file="includes/testrob.txt"-->When I load mylayout into my browser, the file testrob.txt is copied into mylayout. This works fine.I run a program inside a cgi script:#!/bin/shecho Content-type: text/html/mydir/myprog Inside myprog I display mylayout. However it does NOT include the file testrob.txt when I start the cgi script from my browser.Anyone have any idea why the include doesn’t work when using a cgi script?Thank you in advanceRob Link to comment Share on other sites More sharing options...
real_illusions Posted November 22, 2007 Share Posted November 22, 2007 maybe the paths to the files? Link to comment Share on other sites More sharing options...
rtmd Posted November 22, 2007 Author Share Posted November 22, 2007 maybe the paths to the files?I tried the full path and all other combinations but that didn't work either. Link to comment Share on other sites More sharing options...
Synook Posted November 23, 2007 Share Posted November 23, 2007 It seems with your server configuration SSI in CGI scripts is not recognised... Link to comment Share on other sites More sharing options...
rtmd Posted November 23, 2007 Author Share Posted November 23, 2007 It seems with your server configuration SSI in CGI scripts is not recognised...Thank you, I will get into this and let you know (I thought that setting SSI is not CGI dependent). Link to comment Share on other sites More sharing options...
Synook Posted November 24, 2007 Share Posted November 24, 2007 Well, maybe if a page is passed through the CGI interpreter it is not passed through the SSI interpreter. Hm... Link to comment Share on other sites More sharing options...
rtmd Posted November 27, 2007 Author Share Posted November 27, 2007 Well, maybe if a page is passed through the CGI interpreter it is not passed through the SSI interpreter. Hm...Thank you Synook.It is too complicated (for me) to get through the Apache/SSI/CGI doc. I dont't get enough time to figure it out.Maybe (much) later I get into this stuff.Anyway, thank you for responding!!Rob Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.