Re: php, text file, and mysql
| From: | gregory hernandez | Date: | Fri, 08 Mar 2002 00:16:32 +0000 |
| Subject: | Re: php, text file, and mysql | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87686@lists.php.net to get a copy of this message | ||
Erik:
thank for answering my first question:
> the word "file" indicates that this is represented by an entity in a
> filesystem -- thus, it would be saved to a server.
now let me rephrase the second part. what i meant to say was the following:
can i insert the actual file (i.e. "document.txt", of course with it
contents) into a mysql?
in other words, i don't want to read the contents of the file and insert the
contents into a field in mysql. i want to insert the actual file into the
database. is this possible?
thanks again in advance.
gregory
on 3/7/02 12:44 PM, Erik Price at pricee@hhbrown.com wrote:
>
> On Thursday, March 7, 2002, at 04:30 PM, gregory hernandez wrote:
>
>> i'm wondering if i can do the following:
>>
>> FIRST,
>> using php, can i create/generate a text file on-the-fly (not saved to a
>> server)
>>
>> THEN,
>> insert the actual text file (and not its contents) into a mysql
>> database.
>
> Sorry, but I don't really understand the question. If you are creating
> or generating a text file, the word "file" indicates that this is
> represented by an entity in a filesystem -- thus, it would be saved to a
> server. Are you asking if you can create/generate text without saving
> it as a file on the server, but rather just storing the text in memory
> temporarily? If so, then yes --
>
> -- and the second question I haven't really figured out either. You
> want to store a text file into a MySQL database but not the contents of
> that file? It seems like in the first question you want to have
> contents without a file, and in the second you want a file without
> contents! :)
>
> Unless someone else figures out what you want and helps you, ask again
> but describe what you want a little bit more. PHP can do a lot of
> things.
>
>
> Erik
>
>
>
>
> ----
>
> Erik Price
> Web Developer Temp
> Media Lab, H.H. Brown
> pricee@hhbrown.com
>