View Single Post
Old 2012-10-19, 07:45 AM   #1
flowersgone
Are you sure you're an accredited and honored pornographer?
 
Join Date: Sep 2008
Posts: 67
Quote:
Originally Posted by tadpole View Post
The source I am getting is :

<p><!--webbot bot="HTMLMarkup" startspan --><html><head><title>Test</title>
</head>
<body>
<!--#include virtual="cgi-bin/readblog.cgi"-->
</body></html><!--webbot bot="HTMLMarkup" endspan --></p>
That also indicates to me that the file is not being processed with server side include processing. With server side include processing the <!--#include ... line should be gone and replaced with something else.

I have set up an example page here: http://development.toosxxx4.com/ssh-test/test.shtml

The source code is below:

HTML Code:
<!DOCTYPE HTML>

<html>
<head><title>shtml test page</title></head>
<body>

<h3>include flat html</h3>
<!--#include virtual="static.html"-->

<h3>include cgi from bad config</h3>
<!--#include virtual="/no-such-cgi-bin/noprog.cgi"-->

<h3>include cgi from good config</h3>
<!--#include virtual="/cgi-bin/smaller-min.cgi"-->

</body>
</html>
When you do a view source on the result page all the #include lines are gone including the one with a bad cgi directive. The line with a bad cgi directive is replaced at the hosting computer with an error message so the message and not the include line is sent to the browser.

fg
__________________
Thank you for checking out my:
Portfolio and Tech Services

Last edited by flowersgone; 2012-10-19 at 07:53 AM.. Reason: improved fmting etc
flowersgone is offline   Reply With Quote