Greenguy's Board


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-19, 11:55 AM   #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
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   #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 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 10:23 AM.


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