!! CGI execution/ENV/variables - having problems

by Rob Prentice <RJP(at)clickdms.com>

 Date:  Thu, 26 Oct 2000 13:54:00 +0100
 To:  "Hwg-Techniques@Hwg. Org (E-mail)" <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
hello,
 im having huge problems getting the script to execute.
the script write some ENV variables to a file, and then increments a
number in another file by one. so... its basicaly a counter and a basic
statistics log maker.

the html page is one one server and ive tried callign the script with
the following...

<!--#exec cgi="http://www.myhost.com/cgi-bin/statsscriptbeta/stats.cgi"
-->
doesnt work

<img src="http://www.myhost.com/cgi-bin/statsscriptbeta/stats.cgi">
doesnt work

<body
background="http://www.myhost.com/cgi-bin/statsscriptbeta/stats.cgi">
_does_ work.


i have also tried to run the scrip from an html file but on the same
server as where the cgi is. still nothing. i can get it all working
locally on my computer, but not on the web.

the script is basic and isnt using anything unusual. the server the
script is on is easyspace (unix).

the script isnt comming up with errors. if you go directly to the script
then it works. but not whenit is called by another file.

any help is very much apreaciated.

take care,
 Rob.

-----Original Message-----
From: Rob Prentice [mailto:RJP(at)clickdms.com]
Sent: 26 October 2000 09:55
To: Hwg-Techniques@Hwg. Org (E-mail)
Subject: CGI execution/ENV/variables


Hello,
 Im writing a statistics logger. Ive done one for a download counter
before and the one that Im goign to do is prety much the same. im just
not too sure about something.
i know that to execute a script from a page without having to use a form
is <!--#exec cgi="thefile.cgi" -->

but, am i still able to use ENV_XXXXX? and are there any differances
between using <!--#exec cgi="thefile.cgi" -->
 and a form? other than i cant send variables to it like you can with a
form. im going to start writing the script and see how it goes anyway,
but if there is anything i need to know then id apreaciate some tips as
this will my second script in CGI.

thank you,
 Rob.

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.