Jump to content

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.)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.