Jump to content

opening the windows file explorer


lrt

Recommended Posts

is there a way i can get PHP to open up the windows file explorer. i have an image map setup with hotspots that link to specific folders on my PC, but the folder browsing is being opened inside the web browser. i want PHP to be able to open the folder in the windows file explorer. anyone know how to do this? thanks!

Link to comment
https://forums.phpfreaks.com/topic/114336-opening-the-windows-file-explorer/
Share on other sites

Generally to interface between web scripting and pc file system, you will have to have to use something like JAVA or ActiveX scripting.

 

Either way, unsafe and insecure. If it is your own PC and you accomplish this feat make sure your system is LOCKED DOWN and firewalled and such..

 

Good luck

When a page interacts with the file system to upload a file, it using using the HTML input tag of type "file".

This interaction is rather restricted for obvious security reasons.

 

As already stated, JAVA can run a client side app that can access the file system.

 

If you are running page on localhost, I believe you can link to the file directly, "C:\path\file.txt".

This will still open with iexplorer.exe, not explorer.exe. Although, the funcitonality of iexplorer and explorer is nearly identical (if not completly identical).

 

(explorer.exe is the file browser you see anytime you double click a folder on Windows.)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.