Jump to content

Recommended Posts

Posted

I am trying to add time & date to a page using a script called textclock, this is the command I am using to make the call to my cgi bin <!--#exec cgi="/cgi-bin/nph-textclock.cgi"--> but nothing is happening is there something i'm missing here?

Posted

I believe the problem is that using such an include file requires that the actual web page be renamed from .htm(l) to .shtm(l). But that's just off the top of my head. Can someone verify this?

 

-kw

Posted

Yes, that is right: for Apache 1.3.27 (what's being run here) it must be .shtml. I had that problem a few months ago and after posting a trouble ticket, the folks here got me going in the right direction. If my memory serves me correctly, the explanation is that this improves server efficiency: Apache won't try to do SSI parsing on non-SHTML files.

 

A note: when I first ran into this, I was running Apache 2.0.43 on my PC. Version 2.0.43 does support other extensions for SSI (I was using .inc), so I was completely befuddled for awhile until the folks here pointed out the impact of the version differences to me.

Posted

Thanks for your replies ;) For now I have just removed this code from my page but i will experiment per everyones advice & see if i can get it to work.

 

Rock Sign Rock Sign Rock Sign

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...