PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1847
Number of posts: 5013

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
how to view files uploaded in mysql? Posted by sandalvincci on 22 Sept 2010 at 7:07 PM
hello there...
im developing a system currently.
i have this button which enables user to upload a file into mysql server.
after uploading, user can view the files uploaded by clinking on the file name.

i have done with uploading button, and it works nicely.
but i did not find a way to do the view function.

anyone has any idea?
Report
Re: how to view files uploaded in mysql? Posted by Josh Code on 30 Sept 2010 at 12:42 AM
Let's be sure that this is understood right.

You have a file upload form and processing the form is writing the files on hard disk on the server. You are not writing file contents into the database, right? That would be quite unconventional, if you were.

You want a way to list the files that have been uploaded, right? If you're writing files to a specific folder, you can use PHP's readdir function to iterate through all files in that directory. This is most likely what you want and uploading to a specific directory that is used exclusively for uploads would be a great way to organize the information.


Report
This post has been deleted. Posted by Josh Code on 30 Sept 2010 at 12:44 AM
This post has been deleted.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.