Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Local file access from Web Page

Posted on 2014-04-01
3
Medium Priority
?
659 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
Marco Gasi earned 1000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

604 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