Solved

php open local server folder to place documents in it

Posted on 2010-09-16
5
693 Views
Last Modified: 2013-12-13
this is my personal server so security is not an a issue
I have a list of files and folders that are displayed on a webpage.

Instead of having to upload the files  via a upload form or ftp I would like to be able to open the server folder from my web page to delete or add files to the server's shared folder. just like you would thur windows explorer.

I am using xampp for windows
maybe there is  some sort of php command that would excute and windows would open the folder from my windows explorer?  
does any one know of a way to do this ?
0
Comment
Question by:tomjenkins12
  • 3
  • 2
5 Comments
 
LVL 10

Accepted Solution

by:
mstrelan earned 500 total points
ID: 33698059
If you're using Internet Explorer you can make a hyperlink like C drive

Otherwise you could write a batch file that opens windows explorer to the right location and link to that, and then run it. Otherwise you could get some sort of file browser java applet instead
0
 
LVL 10

Expert Comment

by:mstrelan
ID: 33698073
Err ... try this
<a href="file:///C:\">C drive</a>

Open in new window

0
 

Author Comment

by:tomjenkins12
ID: 33701773
it works in ie but not in fire fox any suggestions ?
0
 
LVL 10

Expert Comment

by:mstrelan
ID: 33706566
"Otherwise you could write a batch file that opens windows explorer to the right location and link to that, and then run it. Otherwise you could get some sort of file browser java applet instead"

Or you could create a shortcut to explore C:\ and put a link to that shortcut perhaps.
0
 

Author Closing Comment

by:tomjenkins12
ID: 33728110
works in ie but not in firefox not a biggie thanks for you help
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now