lrt Posted July 11, 2008 Share Posted July 11, 2008 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! Quote Link to comment https://forums.phpfreaks.com/topic/114336-opening-the-windows-file-explorer/ Share on other sites More sharing options...
discomatt Posted July 11, 2008 Share Posted July 11, 2008 PHP is server side. It can't have any client-side effects. Quote Link to comment https://forums.phpfreaks.com/topic/114336-opening-the-windows-file-explorer/#findComment-587941 Share on other sites More sharing options...
lrt Posted July 11, 2008 Author Share Posted July 11, 2008 i've seen some php code able to allow people to open files or upload file.. doesn't this require some sort of access to the local PC? Quote Link to comment https://forums.phpfreaks.com/topic/114336-opening-the-windows-file-explorer/#findComment-587947 Share on other sites More sharing options...
wildteen88 Posted July 11, 2008 Share Posted July 11, 2008 PHP can not open/edit any files on the users PC, unless the user uploads the file first to the server. Quote Link to comment https://forums.phpfreaks.com/topic/114336-opening-the-windows-file-explorer/#findComment-587952 Share on other sites More sharing options...
chronister Posted July 12, 2008 Share Posted July 12, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/114336-opening-the-windows-file-explorer/#findComment-588127 Share on other sites More sharing options...
markjoe Posted July 12, 2008 Share Posted July 12, 2008 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.) Quote Link to comment https://forums.phpfreaks.com/topic/114336-opening-the-windows-file-explorer/#findComment-588171 Share on other sites More sharing options...
lrt Posted July 14, 2008 Author Share Posted July 14, 2008 ok i understand.. thanks for all the replies. Quote Link to comment https://forums.phpfreaks.com/topic/114336-opening-the-windows-file-explorer/#findComment-589736 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.