Re: upload file ?

From: Date: Wed, 29 Nov 2000 04:30:03 +0000
Subject: Re: upload file ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-27861@lists.php.net to get a copy of this message
I am curious I have seen people say both, yes in the db, no never in the db. Why do you say 'no' ? I put all the images related to my clients product in the db. mysql> describe product; describe product_image; +---------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | Privileges | +---------+--------------+------+-----+---------+-------+ | stockno | bigint(20) | YES | | NULL | | select,insert,update,references | | price | float | YES | | NULL | | select,insert,update,references | | name | varchar(255) | YES | | NULL | | select,insert,update,references | | descrip | text | YES | | NULL | | select,insert,update,references | +---------+--------------+------+-----+---------+-------+ 4 rows in set (0.00 sec) +------------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | Privileges | +------------+--------------+------+-----+---------+-------+ | stockno | bigint(20) | YES | | NULL | | select,insert,update,references | | image_num | bigint(20) | YES | | NULL | | select,insert,update,references | | image_data | longblob | YES | | NULL | | select,insert,update,references | | image_name | varchar(255) | YES | | NULL | | select,insert,update,references | | image_type | varchar(255) | YES | | NULL | | select,insert,update,references | +------------+--------------+------+-----+---------+-------+ 5 rows in set (0.11 sec) mysql> Works great for me, but im curious. :) Chris Lee Mediawaveonline.com In article <3A2567EC.692F0705@jwebmedia.com>, jason@jwebmedia.com wrote: > Gianni wrote: >> >> howdy >> >> how can I upload files to a server ? would It be best to upload it into >> the db or to a directory ? the file extension will only be of *.doc >> type >> >> by the way this will be on an NT server. >> >> thanks Gianni > > Hi there, > > You are asking whether or not to put files into a db? Answer is no. > > PHP has FTP functions available. > > Regards, Jason

« previous php.general (#27861) next »