RE: [PHP] question ! show binary

From: Date: Wed, 31 Jan 2001 06:24:47 +0000
Subject: RE: [PHP] question ! show binary
Groups: php.db php.general 
Request: Send a blank email to php-db+get-6275@lists.php.net to get a copy of this message
Why on the earth would you do that? It always happens to me associate images with my databases but I never actually insert them in. I just *copy* these graphics to somewhere on my server (or often even on in a webroot) and give them a logic name. So then when you need to call a graphic you do ( in case the images are in the webroot ): <? $img_dir = '/images'; $img_path = $img_dir.$id_from_db . '.gif'; if(file_exests($DOCUMENT_ROOT.$img_path)) echo '<IMG SRC="' . $img_path . '">'; ?> then here you can eve find out what are they look like ... GetImageSize() etc ... Hope this is something that helps. Cheers, Maxim Maletsky -----Original Message----- From: Yui Hiroaki [mailto:hyui@onyx.dti.ne.jp] Sent: Wednesday, January 31, 2001 2:12 PM To: php-general@lists.php.net; php-db@lists.php.net Subject: [PHP] question ! show binary HI! I am using PHP in mySQL. I create table in database and insert 'binary'(*.gif). But I do not know how to use this binary using PHP and show website. Please help me. $)create table xxx (col longlob); $)insert into xxx values("image\yyy.gif"); I want to display :yyy.gif in html Thank you yui -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#6275) next »