Solved

php open local server folder to place documents in it

Posted on 2010-09-16
5
695 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Suggested Solutions

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…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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 look for a specific file type in a local or remote server directory using PHP.

820 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