Help - Search - Members - Calendar
Full Version: VBscript on Apache
The Planet Forums > Operating Systems > Microsoft Windows
Riccardo.Raneri
Hello, I'm running IIS + Apache on my Windows 2003 box.
I know, it's strange, but I had some RAM and performance problems with MediaWiki on IIS+PHP, so I switched the single site on Apache for Windows, on a separate IP, and now it's working properly.

I was asking to myself if it's possible to use VBScript (NOT asp, I know that a Apache::ASP mod can do it) on an Apache server running on Windows. Windows includes VBscript, so I think it's possible to use it also in Apache, but I don't know how to make it "available".

Thank you in advance rolleyes.gif
rabbit994
Generally VBScript is client side so there is nothing to "enable" on server. However, VBScript is generally only IE only which makes Baby Rabbit cry. Either do it in Javascript/PHP/ASP.Net or it's probably not worth doing.
Riccardo.Raneri
No I was talking about server side VBScript wink.gif
For example I'd like to write PHP code using VBscript (or to install Apache::ASP and write ASP in its "native" scripting language).
rabbit994
Since I wasn't aware VBSCript could even be used as Server side language the answer is "It might work in apache, it might not"

Do it in either PHP or .Net but don't hack some crap together with VBScript.
Kyle
I'm confused. You say you want VBScript support with Apache, but not ASP? VBScript is only available as a server-side language via ASP. I don't have much experience with it, but from what I've seen, Apache::ASP is just a hacked up Perl environment that has all the ASP objects (Request, Response, Server, etc...)
Riccardo.Raneri
Yes, you're right... I'm asking how to enable VbScript because I know about Apache::ASP, so I've no problem with it. But Apache::ASP allow me to use ASP with Perl, not with VbScript. And VbScript is included in Windows, so I'm sure I can use my existing ASP files (in VbScript, of course) on Apache, but I don't understand how to do it.
Kyle
QUOTE (Riccardo.Raneri @ Mar 20 2007, 02:34 PM) *
Yes, you're right... I'm asking how to enable VbScript because I know about Apache::ASP, so I've no problem with it. But Apache::ASP allow me to use ASP with Perl, not with VbScript. And VbScript is included in Windows, so I'm sure I can use my existing ASP files (in VbScript, of course) on Apache, but I don't understand how to do it.

ASP is an ISAPI extension. Apache cannot do ISAPI, so I'm afraid you're out of luck.
Riccardo.Raneri
QUOTE (Kyle @ Mar 20 2007, 09:39 PM) *
ASP is an ISAPI extension. Apache cannot do ISAPI, so I'm afraid you're out of luck.

In fact (if I'm not wrong) Apache::ASP is an Apache module, a replacement of the ASP ISAPI filter for IIS. But ASP is not vbscript... it's strange that I can create .VBS script in Windows and make the OS interpretate and execute them, but I can't write vbScript code and make Apache understand it.
Kyle
An ISAPI filter is processed every request. ASP is an ISAPI extension -- it only process *.asp files (or any other extension(s) you tell it to). WSH is what makes it possible for you to run Windows scripts. It just happens to utilize the VBScript and JScript engines. You could even use PerlScript if you wanted to.

The point is that WSH exposes additional objects necessary to interact with the user and the OS itself. ASP provides that same kind abstraction layer to the developer. ie: The Server object allows you to interact with the server, the Request object allows you to pull data from the user, and the Response object allows you to push data to the user.

While you may eventually figure out how to hack a module together that would let you utilize VBScript in Apache, how are you going to interface with the user or the server? You need that layer that ASP provides to interface the environmental elements with the scripting engine. You can't do anything meaningful, otherwise.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.