PhGroove Posted August 29, 2003 Posted August 29, 2003 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. if I try the script www.mysite.com/cgi-bin/MKCounter.cgi?id=mypage the counter increses but the page with the code insertion ><!--#include virtual="cgi-bin/MKCounter.cgi?id=mypage"--> gives the >[an error occurred while processing this directive] error, but this happens only if the page is in, let's say, /public_html/testing counter/ or /public_html/aaa/ or /public_html/whatever/ if I moved the page to /public_html/ the script works Not a big deal, I mean, I dont really need this script, but, just to learn a little more. So, any clue??? Thanks in advance Rock Sign Quote
TCH-Andy Posted August 29, 2003 Posted August 29, 2003 Hi, First of all Welcome to the family I think the path needs to be modified in your scripts... instead of ><!--#include virtual="cgi-bin/MKCounter.cgi?id=mypage"--> you need either ><!--#include virtual="../cgi-bin/MKCounter.cgi?id=mypage"--> or ><!--#include virtual="www.mysite.com/cgi-bin/MKCounter.cgi?id=mypage"--> because otherwise it doesn't know eher to find your script. Andy Quote
PhGroove Posted August 29, 2003 Author Posted August 29, 2003 I modified the code but is not working!!! Mad!!! 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!? so this code should be fine ><!--#include virtual="www.mysite.com/cgi-bin/MKCounter.cgi?id=mypage"--> btw I tried also ><!--#exec cgi=balhblahblah no luck 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 ...well, maybe!!! thanks 4 the welcome AndyB Rock Sign Quote
TCH-JimE Posted August 29, 2003 Posted August 29, 2003 Hi, Try this: <!--#include virtual="/cgi-bin/MKCounter.cgi?id=mypage"--> Quote
TCH-Andy Posted August 29, 2003 Posted August 29, 2003 it's morning over here, but I'm still not with it totally If you PM or IM me I'll have a quick look and see if we can get things sorted Andy Quote
TCH-Don Posted August 29, 2003 Posted August 29, 2003 PhGroove Welcome to the family! hope you will post often, I looked at the counter and may try it later. If you like it, can you let me know. thanks! Quote
PhGroove Posted August 30, 2003 Author Posted August 30, 2003 The browser, it was the browser's fault!!!!! Mad!!! Geeeeeeeeeeeeeeeee it didn't reload the page with the modification, was keep getting it from the cache!!!!!!!!!!!!!!!!!!!! so, the script is working!!! Thanks to everyone, this place is so great! Rock Sign PhGroove - The Mystical Potato Head Groove Thing" Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.