To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > ClientSide Technologies

ClientSide Technologies Discuss HTML/CSS/Javascript, and any other client-side technologies, here.

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-10-2006, 10:30 AM   #1
jrenzi
Junior Member
 
Join Date: Sep 2001
Posts: 11
Problem using activex

I'm coming to a solution where I need to use PHP + AJAX to automatically upload files to a web server.

I need to use Filesystem Object in Javascript in order to access user local files. The problem is that when it tries to create the object, the browser show me this error:
"Automation server can't create object"

So it can't create the object.

The same script works fine if I access it from the local file, but when I tried to access through apache I get this error.

I've been googling and found that I should have the dll corresponding to FileSystemObject (scrrun.dll) in Apache. I've tried in http.conf without luck.

Anyone knows how I should include this dll in Apache so I can use it?

Thanks in advance
jrenzi is offline   Reply With Quote
Old 05-11-2006, 03:10 AM   #2
Weedpacket
Custom User Title™
 
Weedpacket's Avatar
 
Join Date: Aug 2002
Location: Rapid Offensive Unit "Foreign Object Damage"
Posts: 19,128
I know my browser doesn't have a Filesystem Object.... maybe that has something to do with it? (Good thing, too: imagine the security risks of exposing your local filesystem to any old code that happened to wander in off the net!)
__________________
On two occasions I have been asked [by Members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Weedpacket is offline   Reply With Quote
Old 05-11-2006, 08:53 AM   #3
JPnyc
Administrator
 
Join Date: Jan 2005
Posts: 963
I thought the fso was an object belonging to the windows OS, not the browser. But he's right, with the new security settings instantiating an FSO is going to be preempted by the SP2 pack, not to mention you need activeX to create an FSO with javascript, so it would only have worked in IE anyway.
__________________
PHP builder Online Community Manager

JPnyc is online now   Reply With Quote
Old 05-11-2006, 10:41 AM   #4
MarkR
Senior Member
 
Join Date: Jul 2004
Location: Oxford, England
Posts: 1,983
Creating arbritary activex objects is not going to work in client-side Javascript, EVEN if you're using MSIE.

Its security model doesn't (for obvious reasons) let you create any object which is not marked "safe" in some way. This is very few classes, I hope.

Mark
MarkR is offline   Reply With Quote
Old 05-11-2006, 11:32 AM   #5
jrenzi
Junior Member
 
Join Date: Sep 2001
Posts: 11
I've found that works by reducing the security level, and allowing to automatically accept not secure activex objects .

But I think that could be daungerous.

So I think I'll go with something different.

Do you have any suggestion? Maybe I can do this with java or flash
jrenzi is offline   Reply With Quote
Old 05-11-2006, 04:44 PM   #6
JPnyc
Administrator
 
Join Date: Jan 2005
Posts: 963
I think the issue will be "automatically". I don't think there's anyway to get around newer security settings, regardless of the language used. The user will almost certainly get a prompt no matter what.
__________________
PHP builder Online Community Manager

JPnyc is online now   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 04:07 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.