You are here: Re: Insert text file in a text field « PHP Programming Language « IT news, forums, messages
Re: Insert text file in a text field

Posted by Henri on 10/20/07 15:05

On Fri, 19 Oct 2007 23:26:07 +0100, The Natural Philosopher wrote:

> Henri wrote:
>> On Thu, 18 Oct 2007 09:36:59 -0700, electric_r wrote:
>>
>>> Hallo,
>>>
>>> I have 2 questions:
>>>
>>> with php and mysql :
>>>
>>> 1) How can I insert a text file into a TEXT field of a table ?
>>
>> textarea value="<?php echo thefile; ?>" something like that
>>
>>> 2) How can I insert a microsoft word file into a BLOB field of a table
>>> ?
>>
>> wouldn't it be more practical to just store the file's path instead of
>> the file itself?
>
> Actually it isn't.I ended up with EVERYTHING - files and images - in the
> database simply because backing up the database then backs up
> EVERYTHING.
>
ok, good point. I was just not thinking in terms of back ups.

> But I wouldn't use a text area to input a file..use the FILE input
> command.

that was my misanderstanding the first question.
>
>>> Please, could you help me with a simple example ?
>>>
>>> Thank you .
>>>
>>> Fab
>>

 

Navigation:

[Reply to this 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

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