Simple Cgi Counter Wont Work Beside Public_html

liunx

Guest
Hi all, this is it! I'm using a very simple cgi counter that uses SSI, and I just noticed that if the shml file is in a sub-folder of public_html the counter wont work.<br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/dry.gif" style="vertical-align:middle" emoid="<_<" border="0" alt="dry.gif" /> <br /><br />if I try the script <!-- w --><a class="postlink" href="http://www.mysite.com/cgi-bin/MKCounter.cgi?id=mypage">www.mysite.com/cgi-bin/MKCounter.cgi?id=mypage</a><!-- w --><br />the counter increses but the page with the code insertion<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><!--#include virtual="cgi-bin/MKCounter.cgi?id=mypage"--><!--c2--></div><!--ec2--><br /><br />gives the <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->[an error occurred while processing this directive]<!--c2--></div><!--ec2--> error, but this happens only if the page is in, let's say, /public_html/testing counter/<br />or /public_html/aaa/ or /public_html/whatever/<br />if I moved the page to /public_html/ the script works<br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/huh.gif" style="vertical-align:middle" emoid=":huh:" border="0" alt="huh.gif" /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> <br /><br />Not a big deal, I mean, I dont really need this script, but, just to learn a little more.<br /><br />So, any clue???<br /><br />Thanks in advance<br /> Rock Sign<!--content-->
Hi,<br /><br />First of all Welcome to the family <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /><br /><br />I think the path needs to be modified in your scripts...<br /><br />instead of <br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><!--#include virtual="cgi-bin/MKCounter.cgi?id=mypage"--><!--c2--></div><!--ec2--><br /><br />you need either<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><!--#include virtual="../cgi-bin/MKCounter.cgi?id=mypage"--><!--c2--></div><!--ec2--><br />or<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><!--#include virtual="www.mysite.com/cgi-bin/MKCounter.cgi?id=mypage"--><!--c2--></div><!--ec2--><br /><br />because otherwise it doesn't know eher to find your script.<br /><br />Andy<!--content-->
I modified the code but is not working!!! Mad!!! <br />I thought that the path was wrong but...if I copy the path, and paste it in the adress bar the script shows a blank page with the increased counter, so the path is ok, right!?<br /><br />so this code should be fine<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><!--#include virtual="www.mysite.com/cgi-bin/MKCounter.cgi?id=mypage"--><!--c2--></div><!--ec2--><br />btw I tried also <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><!--#exec cgi=balhblahblah<!--c2--></div><!--ec2--><br />no luck <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> <br />I'm checking again inside the script, maybe (probably, it's kinda late here) I'm tired and I'm missing something, tomorrow, as usual, everything will be clear <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> ...well, maybe!!! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> <br /><br />thanks 4 the welcome AndyB<br /><br /><br /> Rock Sign<!--content-->
Hi,<br /><br />Try this:<br /><br /><!--#include virtual="/cgi-bin/MKCounter.cgi?id=mypage"--><!--content-->
it's morning over here, but I'm still not with it totally <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br /><br />If you PM or IM me I'll have a quick look and see if we can get things sorted<br /><br />Andy<!--content-->
PhGroove <br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> Welcome to the family! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> <br /><br />hope you will post often,<br /><br />I looked at the counter and may try it later.<br /><br />If you like it,<br />can you let me know.<br />thanks!<!--content-->
The browser, it was the browser's fault!!!!! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/mad.gif" style="vertical-align:middle" emoid=":angry:" border="0" alt="mad.gif" /> Mad!!! <br />Geeeeeeeeeeeeeeeee it didn't reload the page with the modification, was keep getting it from the cache!!!!!!!!!!!!!!!!!!!!<br />so, the script is working!!! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> <br /><br />Thanks to everyone, this place is so great! Rock Sign <br /><br /><br /><br />PhGroove - The Mystical Potato Head Groove Thing"<br /><br />?br />?<!--content-->
 
Back
Top