Re: Re: Upload File

From: Date: Wed, 10 May 2006 15:06:38 +0000
Subject: Re: Re: Upload File
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-235901@lists.php.net to get a copy of this message
Peter Hoskin schrieb:
Renzo Clavijo wrote:
hi all.. I'm gonna be more precise: I wrote a form with fields <text type="file" .... >, then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the image?. Is there an example code to upload the file(s)?
Despite common belief, SQL is not suited to the storage of binary files. SQL is based on ASCII. Store your files on the filesystem, not SQL.
But mysql can be quite a good spool though. That way you don't have to code one for yourself. -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

« previous php.general (#235901) next »