index.shtml
==============================================
<HTML><BODY bgcolor=000000>
<CENTER><FONT size=7 color=aaaaaa><B>PKHelloNasty's Page</B><FONT>
<BR><FONT size=3 color=aaaaaa><!-- #include file="/cgi-bin/stuff.txt" -->
<BR><FONT size=3 color=aaaaaa><!-- #exec cgi="test.pl" -->
<BR><FONT size=3 color=aaaaaa><!-- #include file="/cgi-bin/stuff.txt" -->
<BR><FONT size=3 color=aaaaaa><!--#echo var="REMOTE_ADDR"-->
<BR><FONT size=3 color=aaaaaa><!--#echo var="HTTP_USER_AGENT"-->
</BODY></HTML>
===============================================
this is the script being called by the second SSI call....
test.pl
===============================================
#!C:\Perl\bin
print "Content-Type: text/html\n\n";
print "HELLO WORLD!";
exit;
===============================================
this is my output...its as if the script call was never there....
OUTPUT!!
===============================================
PKHelloNasty's Page
HELLO THIS IS MY TEXT! :)
HELLO THIS IS MY TEXT! :)
192.168.1.1
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)
===============================================
if someone has NE idea or help...please lemme know :)
(edited by: sugarkane at 8:41 am (utc) on Feb. 28, 2002)
I'm not an expert on IIS, but we had a discussion here [webmasterworld.com] a few months ago that might help you out
Let us know how you get on :)
Thanks..as usual :) Sends a Good first impression amoung us :)
>I'm not an expert on IIS, but we had a discussion here a few months ago that might help you out
I checkoed out that page and it explains exactly what my problem is. I understand about how the SSI directives work and what not, under the prefrences/Config window as explained in the last post in that thread. I also understand why only .shtml docs are parsed. However I did change my document to .shtml and I am having the same results. It is as if the parsing of the document is understand every possible SSI call except the exec command. It I know it is reading the exec command because if i put a link to a .pl file thatdoesn't exsist, it spits back an error message. When I put a link to a .pl file thatdoes exsis, nothing happens. Im baffeled and confused. I am on a Windows XP box. Maybe its just Microsofts new way of saying NO!, NO PERL!...
On another note, since everything except the <!--#exec cgi="test.pl"--> seems to work.. maybe MS messed with the .dll file that SSI uses to parse or look for this command. Would it be possiblt to take a .dll file from an older version of windows where I know the SSI parsing works right and just plop it on top of mine??
Any input on this topic is greatly appreciated, thanks :)
I still have no clue what is goign on.. Now I have another question. :)
Could the problem be with the first line of my perl file where it says "#!C:/Perl/bin"
The file seems to run fine in dos even without this line in the file. I am assuming that SSI needs it for some reason, I do not know why. Perl is installed on my Computer in C:/Perl and the exe can be found at C:/Perl/bin.
The path to my www root folder is C:/Inetpub/wwwroot. Does perl have to be installed within this root folder? Im full of newbie questions :)
If someone can help in any way PLEASE PLEASE drop a line :)
[yourdomain.com...]
That will tell you if the script is working or not before trying to get ssi to work. (Getting the system setup is the toughest part - trust me, it's worth it to you as a developer - nothing will speed up your site/page production and quality more that being able to run stuff off your own box just as it is run online).
the page that doesn't work is found at [mjs7231.dhs.org...] which is the same as the file shown in the first post.
In the config section of the IIS setup i have .pl mapped to "C:/perl/bin/perl.exe "%S" %s"
I have my shtml files mapped to "C:/windows/system32/ssinc.dll" which is the default that windows made it.
THanks again for your help so far, I greatly appreciate it, even tho we got no results thus far :(
I am beginning to think that my XP machine just doesn't like me.. :) Maybe I will cosider buying a server.. Is there a good cheep one out there that NEone might know of that would allow me to host DJ sets of MP3's (not illegal ones) which means i would need about 300mg and CGI access.
That also makes me wonder, do my CGI files, have to be placed in a special place for them to be used a scripts on my XP box?? everyone seems to use a CGI-BIN, but I nver had to use that.. I just placed them where ever I wanted on my RIT server.
Even tho I say I quit... I will not let the machine win this battle!! its just the thought that people made this and we can't figure out what we did...pisses me off.. XP MACHINE...you going DOWN! :) :) :)