Click to See Complete Forum and Search --> : ActiveX in Apache.


ava
12-07-2006, 06:02 AM
Hi, I hope I'm in the right forum for this.

I'm trying to make a script that creates an activex component:
oShell= new ActiveXObject("WScript.Shell");This works fine when I start the page up normally, but when I access it through my webserver (apache), it gives an error and says that the object cannot be created.

Does anyone have any idea how to make this work with Apache?

Ava

Charles
12-07-2006, 07:40 AM
Sounds like the security settings on your browser.

mrhoo
12-07-2006, 08:45 AM
WScript.Shell and ActiveXObject are windows components-
if Apache is installed on a windows platform you can get it
to serve ActiveXObjects for the client to install or use,
but you can't run them on the server itself.

You can run ASP code on Apache on windows, with contortions,
but php and its mods outperform it. And if you are on a Unix or linux server,
use the Unix shell language.