Solved

Local file access from Web Page

Posted on 2014-04-01
3
622 Views
Last Modified: 2014-04-07
I am working a application mostly for my personal use which I have written in PHP.   with an HTML interface.   I have a separate PHP file which I am using to read a file and load data into a database.  However this is something I would like to do on a regular basis and currently I am editing the PHP file and entering the full path to the file I want to upload.  

I would like to be able to browse and select a file on the local (client) C drive, read it in and load it into a database table on my webserver.   From a page on my webserver.

What is the easiest way to go about this.  

I am running an Apache web-server on OpenSUSE.   My current pages are all built using javascript and PHP.
0
Comment
Question by:qvfps
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
Marco Gasi earned 250 total points
ID: 39972804
I suggest you a good jQuery plugin: http://blueimp.github.io/jQuery-File-Upload/
It has a great interface, it is easy to implement and you can edit it to insert uploaded files in the database.
0
 
LVL 31

Expert Comment

by:Marco Gasi
ID: 39972811
In order to insert fles in the database, you can take a look to this my own question about this: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28379067.html
0
 

Author Comment

by:qvfps
ID: 39973063
Thanks for the suggestions.  I will look into trying this.

Unrelated.  Is it possible to delete answers?  There was one posted last night from someone else but it is not displayed today?
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The viewer will learn how to dynamically set the form action using jQuery.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

22 Experts available now in Live!

Get 1:1 Help Now