Solved

Local file access from Web Page

Posted on 2014-04-01
3
620 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 30

Accepted Solution

by:
Marco Gasi earned 250 total points
Comment Utility
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 30

Expert Comment

by:Marco Gasi
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

743 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

16 Experts available now in Live!

Get 1:1 Help Now