Jump to content

Recommended Posts

Posted

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.

:goof:

 

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

:lol: :goof:

 

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

Posted

Hi,

 

First of all Welcome to the family :goof:

 

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

Posted

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 :lol:

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 :goof: ...well, maybe!!! :goof:

 

thanks 4 the welcome AndyB

 

 

Rock Sign

Posted

it's morning over here, but I'm still not with it totally :goof:

 

If you PM or IM me I'll have a quick look and see if we can get things sorted

 

Andy

Posted

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!!! :D

 

Thanks to everyone, this place is so great! Rock Sign

 

 

 

PhGroove - The Mystical Potato Head Groove Thing"

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...