Results 1 to 4 of 4

Thread: SSI question

  1. #1

    Thread Starter
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161
    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.

  2. #2
    Lively Member AndySoft's Avatar
    Join Date
    Oct 2000
    Location
    Massillon, OH
    Posts
    68

    Lightbulb 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!

  3. #3

    Thread Starter
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161
    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.

  4. #4
    Lively Member AndySoft's Avatar
    Join Date
    Oct 2000
    Location
    Massillon, OH
    Posts
    68

    Cool 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
  •  



Click Here to Expand Forum to Full Width