Re: Parsing a File

From: Date: Tue, 21 Sep 2004 09:42:40 +0000
Subject: Re: Parsing a File
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197395@lists.php.net to get a copy of this message
Harlequin wrote:
Hi all. I've been through the PHP manual and wonder which file option will best suit my needs. I basically want to take a file that the user uploads and parse it into a variable or string so I can insert it into a field in my database. Do I use: File() creates an array
file_get_contents is best suited.
However, the best solution is to store the file on the filesystem and keep only the filename in the database.

« previous php.general (#197395) next »