Forum Index Search Forum Register Log in

Runs on XP to Win 10

Current

Download 7.0

Download 7.1 Beta5 upgrade



A donation makes a contribution towards the time and effort that's going in to running this site.

Steffen

Contact:
My mail address is
at the top of the paypal form :

Your donations will help to keep this site alive and well.


Update your links !! November 2016 the forum is at www.apachelounge.com/sambar

In the forum there are links to sambarserver.info,
replace "sambarserver.info" with "apachelounge.com/sambar"
Executing code from an stm page

 
Post new topic   Reply to topic    Sambar Forum Index -> Coding & Script Corner
View previous topic :: View next topic  
Author Message
geoff.carter



Joined: 31 Jul 2009
Posts: 1
Location: UK

PostPosted: Thu 15 Oct '09 6:45    Post subject: Executing code from an stm page Reply with quote

On one of my sites I access a piece of perl code from within a html page by using <!--#exec cgi="full/path/to/code.pl"--> and it works fine. However, when inserting the same code into a stm file nothing is returned.
Has anyone else experience of this and/or any ways of overcoming it?
Regards.
Back to top
View user's profile Visit poster's website
rgibson



Joined: 20 Oct 2009
Posts: 26

PostPosted: Mon 30 Nov '09 0:41    Post subject: Re: Executing code from an stm page Reply with quote

use the server scripting RCCcgi tag
<RCCcode> where code.pl resides in the cgi-bin for the vhost

I use this for one of my page counters

Randy

geoff.carter wrote:
On one of my sites I access a piece of perl code from within a html page by using <exec> and it works fine. However, when inserting the same code into a stm file nothing is returned.
Has anyone else experience of this and/or any ways of overcoming it?
Regards.
Back to top
View user's profile

Post new topic   Reply to topic    Sambar Forum Index -> Coding & Script Corner
Page 1 of 1