-
I'm trying to execute a script from a webpage like that:
<img src="<!--#exec cgi="cgi-bin/ftpstatus.cgi?127.0.0.1:21"-->">
but the result is
<img src="[an error occurred while processing this directive]">
the script itself is working allright and when I remove the "?127.0.0.1:21", the error is gone... but I need to pass a parameter to the script.
-
Well...
You can't pass params useing the exec directive. Use this:
<!--#include virtual="/cgi-bin/whatever.cgi?value1=value1"-->
I found that that works and the other way doesn't.
-
Thanks!! It's working now!
I wanted to use a script to show the status of an FTP server (offline or online)
-
No problem!
I figured that out when I was making a counter and needed to pas what page it was on to the script. :)