Greenguy's Board WebcamWiz CRAZY $5,000 Reward Bonuses


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 3.00 average. Display Modes
Old 2012-10-15, 12:57 PM   #1
tadpole
Oh! I haven't changed since high school and suddenly I am uncool
 
tadpole's Avatar
 
Join Date: Aug 2007
Location: Darkest Africa
Posts: 258
Send a message via ICQ to tadpole
I uploaded that as my testing page and am still receiving a blank page. 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 was using the insert button Front page has, I also typed it in exactly as your sample code and got a blank page.
tadpole is offline   Reply With Quote
Old 2012-10-15, 03:12 PM   #2
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
Quote:
Originally Posted by tadpole View Post
I uploaded that as my testing page and am still receiving a blank page.
Your host has not enabled SSI. They may also have not enabled your CGI-BIN. If they were both enabled that page would have either worked or given you an error message. And either way, the server at your host's end should have deleted the following line from your source code:
Code:
<!--#include virtual="cgi-bin/readblog.cgi"-->
Copy and paste the last three messages on this board, and send them to your hosting company. They will be able to work out what they are doing wrong from these three posts.
ecchi is offline   Reply With Quote
Old 2012-10-19, 07:45 AM   #3
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
Old 2012-10-19, 11:55 AM   #4
tadpole
Oh! I haven't changed since high school and suddenly I am uncool
 
tadpole's Avatar
 
Join Date: Aug 2007
Location: Darkest Africa
Posts: 258
Send a message via ICQ to tadpole
Thanks for your reply ecchi, and flowersgone for the example page.

The script I have uploaded to cgi, and the test.shtml is in the root. I have tried both codes :-

<html><head><title>Test</title>
</head>
<body>
<!--#include virtual="cgi/readblog.cgi"-->
</body></html>

and

<html><head><title>Test</title>
</head>
<body>
<!--#include virtual="/cgi/readblog.cgi"-->
</body></html>

I am still receiving a blank page that shows the source code exactly as the above two examples.

I have tried saving the script file with .txt and .cgi extensions, but nothing is working or giving me an error message.
tadpole is offline   Reply With Quote
Old 2012-10-23, 04:05 AM   #5
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
Quote:
Originally Posted by tadpole View Post
I have tried saving the script file with .txt and .cgi extensions, but nothing is working or giving me an error message.
At this point it does not matter what you do with the script file because the shtml file is not even looking at it yet. Your host has NOT enabled SSI. I cannot understand how they think they have. Try sending them the message below, although obviously replace (name) and (domain) with your own name and domain.
Quote:
I am trying to help (name) get a script of mine working on (domain). The script is called from a shtml page. Although you have assured (name) that SSI is enabled, this is not correct. If you look at the page on the domain called test.shtml in a web browser you will notice that it is a blank page. If both the script and SSI call are working it would show an adult blog feed. If there was a problem with the script the page would show an error message. There is no such message. Even if I were to assume your server was running some cut price software that did not show an error code (I'm NOT saying you are, I am just trying to cover all possibilities here), it would still delete the call to SSI from the page. If you look at the source code, you will see that this has not been done. The only way that can happen is if SSI is not enabled for this account. So please could you enable it.

Also: To save the possibility of future problems please check that CGI is enabled and that your Perl engine is live.

Finally, in your previous message you stated that your server does not use the usual protocol of calling the folder where the scripts are stored "cgi-bin" and instead calls it simply "cgi". Could I ask you to confirm this and also let me know if there are any other unusual settings on your server that I need to know about, to avoid future problems. And is your path to Perl "usr/bin/perl" as is common, or do you use any unusual folder names/directory structure that I need to know about?

Thank you in advance for your help.
ecchi is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:16 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc