|
-
Mar 5th, 2001, 02:20 PM
#1
Thread Starter
Addicted Member
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.
Razzle
ICQ#: 31429438
What is the difference between a raven?
-The legs. The length is equal, especially the right one. 
-
Mar 5th, 2001, 06:48 PM
#2
Lively Member
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.
-AndySoft
[email protected]
[email protected] (Use the other one first!)
I use: NASM, HTML, Perl, PHP, JavaScript, Batch, TI-Basic (TI-83+), QBasic 1.1, QuickBASIC 4.5, QuickBASIC Extended 7.1, VB-WIN 6 Ent., and the rest of Visual Studio 6 Ent.  And who knows what else!
-
Mar 6th, 2001, 03:34 AM
#3
Thread Starter
Addicted Member
Thanks!! It's working now!
I wanted to use a script to show the status of an FTP server (offline or online)
Razzle
ICQ#: 31429438
What is the difference between a raven?
-The legs. The length is equal, especially the right one. 
-
Mar 6th, 2001, 08:00 AM
#4
Lively Member
No problem!
I figured that out when I was making a counter and needed to pas what page it was on to the script.
-AndySoft
[email protected]
[email protected] (Use the other one first!)
I use: NASM, HTML, Perl, PHP, JavaScript, Batch, TI-Basic (TI-83+), QBasic 1.1, QuickBASIC 4.5, QuickBASIC Extended 7.1, VB-WIN 6 Ent., and the rest of Visual Studio 6 Ent.  And who knows what else!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|