Reply to Re: Should I use text files?

Your name:

Reply:


Posted by J.O. Aho on 02/07/06 03:23

Tony Peardon wrote:
> Hi,
>
> I'm building an online project manager. Within my database, I have a table
> named projects which stores data about various projects. For each project, I
> require an overview, which could be as short as a single sentence, or as
> long as multiple paragraphs, so what is the best way of storing a project
> overview?
>
> I was thinking that the table could store a file name, and then PHP could
> open that file, but that seems like a work-around, rather than a solution.
> There must be a better way, but what is it?

Store the text in the database, you can use the type TEXT for the column.
If you store things in a file, you need to make a directory where you store
the text files writable for the webserver, which lowers in general the
security of the system and you need to have code to verify that the file is
there and is readable. You get a lot less job just working with the database.



//Aho

[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

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