Jump to content

Include not working


rtmd

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...