I need a really good example in PHP (maybe something somebody implements before in a web app) to implement in a little program, where the user can upload files, we are using PHP, MySQL, the files can be saved in the database as a binary or physical in the server whichever is best
Why?
1 - it has usually a variable lenght and will therefor impact optimization and performance
2 - you always run the risk that some programmer will not use the recommended good paractice to read a list of fields, but instead to read the complete row / record.... which will severely impact the program performance in unexpected (by the programmer) ways
Recommended practice is to have a donwload area, and to place inti the db a link to the file