views:

241

answers:

2

I wrote a script in php that allows me to get a list of files in a directory as an array, parse each one for a particular string, and then it displays all of the files that contain the search string.

My IT staff won't let me install php on the server though. Can this be done with javascript without ActiveX? Everything I could find on this is pretty old.

Alternatively, is there a way to make php functions like opendir and readir work on a remote server?

Thanks

A: 

Nor JavaScript / ActiveX will help you do what you need to do if the directories are on a remote server. So no, can't be done.

Raphael Caixeta
Hi, you misunderstood my question. I can do it locally if it can be done with javascript. I only asked about doing it from a remote server for php since I can't install php on the server where I need to get the file list from.
Baa
A: 

This would be quite the security violation if you could. You will need to have something installed on the server that has file system access. If this is on an internal network, you may be able to simply enable directory browsing... but there aren't any client-side-only solutions to this.

jmar777