Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

php open local server folder to place documents in it

Posted on 2010-09-16
5
Medium Priority
?
704 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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

885 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