using the cgi option
Posted: Tue Mar 15, 2005 12:41 am
i want to use a cgi on the apache server!
i have this exe file taken from a thread i have posted on :
http://www.vbcity.com/forums/topic.asp? ... #RID298119
i compiled to file to an exe and putted it in a test folder!
the file is used as a cgi, and when i try to access it like this :
i recive a message with the letters "MZ" which i dont know why 
is the place i putted the cgi is ok?should i put it on another place?
thnaks in adance
peleg
i have this exe file taken from a thread i have posted on :
http://www.vbcity.com/forums/topic.asp? ... #RID298119
i compiled to file to an exe and putted it in a test folder!
the file is used as a cgi, and when i try to access it like this :
Code: Select all
<SCRIPT>
var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
try {
xmlhttp = new ActiveXObject("e;Msxml2.XMLHTTP"e;);
} catch (e) {
try {
xmlhttp = new ActiveXObject("e;Microsoft.XMLHTTP"e;);
} catch (E) {
xmlhttp = false;
}
}
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
xmlhttp.open("e;GET"e;, "e;http://localhost/test/cgi4vb.exe"e;,true);
xmlhttp.send("e;x=asdfsadf"e;);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
alert(xmlhttp.responseText)
}
}
</SCRIPT>is the place i putted the cgi is ok?should i put it on another place?
thnaks in adance
peleg