The methods suggested above would all work but if you would like to do
in one step you could use file_get_contents(). This method does not
require you to open/close the file and will automatically read the
entire file into your array.
Calvin
On Apr 3, 2005 10:23 AM, Bastien Koert <[EMAIL PROTEC
of course, there are a number of file system option syou can use depending
on how you;d like the data to be handled, from being put into an array to
simply storing the entire file as a string
start with file http://www.php.net/file
or fread http://www.php.net/fread
Bastien
From: "Ron Piggott" <
You could read this:
http://php.net/fread
or try this -- assuming that this is a non-windows OS:
Mark Cain
- Original Message -
From: "Ron Piggott" <[EMAIL PROTECTED]>
To: "PHP DB"
Sent: Friday, April 01, 2005 11:43 PM
Subject: [PHP-DB] File retrieval
> If I have a file named
>
Beau Lebens wrote:
>
> Greetings all,
>
> I am having great difficulties with an online app that I am developing.
>
> To avoid issues with file permissions etc, I am saving files into a MySQL
> database (soon to be PostgreSQL), which works marvellously. Along with the
> contents of the file, I