Reply to Re: Upload a file into DB

Your name:

Reply:


Posted by Richard Levasseur on 06/29/06 19:45

PHP already provides the OS independence.

It is better practice to store a link in the DB and the file in the
file system.

Accessing the file is also faster, as it doesn't have to go through the
database.

Backing up shouldn't be an issue. Backups should be done by scripts,
at the most you should only have to click a button or run a command to
perform a back up.

yonthebeach@googlemail.com wrote:
> realmehmet wrote:
> > yonthebeach@googlemail.com wrote:
> > > how can i upload a file with PHP into my database, and allow a download
> > > of the file on the frontend (sent to client). Do i upload then into a
> > > BLOB field? And how to check for a max filesize (max. 1MB) and if its
> > > bigger cancel operation.
> > Why don't you upload the file to some folder and then insert link of it
> > to DB?
> >
> > Mehmet Zahit Ates
>
> to be os independent and easier backup of the running app.
>
> greets
> yavuz bogazci

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация