From browser upload large csv file from local machine

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
edziffel
Forum Newbie
Posts: 9
Joined: Wed Jul 13, 2011 6:32 am

From browser upload large csv file from local machine

Post by edziffel »

Hello

This is my first post to this forum, so first let me thank all involved in the site for having one that works, as the first two I tried to join did not. Mind numbing huh?

Currently need to develop proper code so end user can click on a "browse to file" button in a browser to select a csv file that will then be uploaded to a MySql table.

Am thinking to use fgetcsv to upload and fopen to specify file. Want to be able to allow end user to open files from various directories on local machine using a browse button but am not sure what to use for that job. There is probably something already done for this I'm just not aware of and if not then maybe some one can clue me on where to start.

Thanks
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: From browser upload large csv file from local machine

Post by Celauran »

edziffel wrote:Want to be able to allow end user to open files from various directories on local machine using a browse button but am not sure what to use for that job. There is probably something already done for this I'm just not aware of and if not then maybe some one can clue me on where to start.
Are you using a form with input type="file"? If not, that's where I'd start. If you are, what sort of problems are you encountering?
Post Reply