<!--#exec cgi="/cgi-bin/my.cgi"-->
is disabled in IIS5 for security resons
if it is left on it CAN be POSIBLE to format your sever from milisous code.
<!--#EXEC CMD="cmd /c format c:"-->
or something like that
for more infor look at
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q203064
and http://support.microsoft.com/default.aspx?scid=kb;en-us;Q233969

<!--#include virtual="/cgi-bin/my.cgi"-->
is doing exactly what it is suposed to do the virtual stands for the
directory
for example:
http://orpc.hypermart.net/cgi-bin/env.pl
the Virtual directory is
/cgi-bin/env.pl
and can be referenced from any page from any directory.
But the virtual directory is always from the root of the web sever.  but it
will alwas display the text and not what you want.  it was designed for (and
works really well in) ASP.
Unfortunealy I have not found a way to include a perl cgi in side a page
yet.


----- Original Message -----
From: "Andrea Holstein" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 31, 2001 3:07 AM
Subject: Re: Newbie - #include virtual in my .SHTML file just displays the
contents of the CGI


> Dale W wrote:
> >
> > If I run the script from my browser, it works great.  When I call the
CGI
> > file from my SHTML file, it just dumps all of the text from the CGI file
> > into the brower.  Here is a simple example:
> >
> > -----MY.SHTML
> > <!--#include virtual="/cgi-bin/my.cgi"-->
>
> I don't know something about "virtual" scripts.
> However,
> >
> > -----MY.CGI
> > #!/usr/bin/perl
> > print "content-type:text/html\n\n";
>          ^       ^    ^
> The standard way is to write
> print "Content-Type: text/html\n\n";
>
> >
> > print "<b>This is BOLD</b><br>";
> > print "This is not.<br>";
> >
> > ...
>
> Best Wishes,
> Andrea
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to